Show orders from past n days in Power BI

0 votes
How to show orders from past n days in Power BI?
Apr 8, 2019 in Power BI by banu
1,166 views

1 answer to this question.

0 votes

HI banu,

Create a column like below,

diff = DATEDIFF(Orders[Order Date].[Date],TODAY(),DAY)

days = IF(Orders[diff] < 30 ,"last 30 days","past orders")

Now add the days column in slicer and select last 30 days.

Add other required fields to show data for last n days.

Hope this helps you.

answered Apr 8, 2019 by Cherukuri
• 33,050 points

Related Questions In Power BI

0 votes
2 answers

How do I create a rolling time window in Power BI visuals, such as the past 7 or 30 days?

Create a Date Table: Include a calculated ...READ MORE

answered Jan 23 in Power BI by pooja
• 22,330 points
181 views
0 votes
1 answer

How do you add a slicer from different table in Power BI?

Firstly select the table that u want ...READ MORE

answered Oct 10, 2023 in Power BI by Monika kale

edited Mar 5 1,920 views
0 votes
1 answer

count of orders on n hour basis - Power BI

Hi Nithin, You can create a measure to ...READ MORE

answered Apr 11, 2019 in Power BI by Cherukuri
• 33,050 points
1,127 views
0 votes
1 answer

How to show visualization (map) based on latitude and longitude points in power BI?

Follow the below steps: 1. Select the map ...READ MORE

answered Oct 18, 2019 in Power BI by anonymous
• 3,450 points
3,207 views
0 votes
1 answer

Displaying Table Schema using Power BI with Azure IoT Hub

Answering your first question, Event Hubs are ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by nirvana
• 3,090 points
1,583 views
+1 vote
1 answer

Unable to install connector for Power Bi and PostgreSQL

I think the problem is not at ...READ MORE

answered Aug 22, 2018 in Power BI by nirvana
• 3,090 points
2,918 views
+2 votes
2 answers

Migrate power bi collection to power bi embedded

I agree with Kalgi, this method is ...READ MORE

answered Oct 11, 2018 in Power BI by Hannah
• 18,520 points
1,703 views
+1 vote
1 answer

Connect power bi desktop to dataset and create custom reports

Open power bi report nd sign in ...READ MORE

answered Oct 10, 2023 in Power BI by Monika kale

edited Mar 5 1,863 views
0 votes
1 answer

Show orders from past n months

Hi banu, Create a column like below, diff = DATEDIFF(Orders[Order ...READ MORE

answered Apr 8, 2019 in Power BI by Cherukuri
• 33,050 points
752 views
0 votes
1 answer

How to show filtered vs total data in power BI?

Hi sindhu, Follow below steps to show filtered ...READ MORE

answered Mar 26, 2019 in Power BI by Cherukuri
• 33,050 points
4,972 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP