Measure to filter date from another field

0 votes
How to create a measure to filter date from another field? I want to use slicer to give date and the measure should show me the average sales for that month and also the day with highest sales.
May 17 in Power BI by sindhu
25 views

1 answer to this question.

0 votes
Hi,

Create a column with [date-field].[month] to fetch the months. Now add the column to the slicer to select the month.

Create a measure to fetch an average month by dropping sales in the card and converting to average to find average sales.

Create a column to check the days and return day with the highest sale

Column  = IF(Orders[Sales]=MAX(Orders[Sales]),(Orders[Order Date].[Date]),DATE(1900,1,1)).

I have given DATE(1900,1,1) as default date to all dates except highest sale day.

Now use the measure to calculate the max(column) to fetch the day with the highest sales.

Hope it helps.
answered May 17 by Cherukuri
• 31,840 points

Related Questions In Power BI

0 votes
1 answer

How to export Power Queries from One Workbook to Another with VBA?

Try solving it using the Workbook. Query ...READ MORE

answered Oct 22, 2018 in Power BI by Annie97
• 2,190 points
491 views
0 votes
0 answers

How to break datetime field to date field in power bi?

How to break DateTime field to date ...READ MORE

Oct 17 in Power BI by ch
• 3,290 points
24 views
0 votes
2 answers

Passing parameters to Power BI filter programmatically

In addition to @Kalgi's answer, there's another ...READ MORE

answered Sep 19, 2018 in Power BI by Nilesh
• 6,880 points
2,857 views
0 votes
1 answer

Why should I shift from MS Excel to Power BI

There are a lot of advantages from ...READ MORE

answered Sep 26, 2018 in Power BI by Kalgi
• 42,430 points
64 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,060 points
107 views
0 votes
1 answer

Unable to install connector for Power Bi and PostgreSQL

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

answered Aug 21, 2018 in Power BI by nirvana
• 3,060 points
759 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
• 16,570 points
141 views
0 votes
1 answer

Connect power bi desktop to dataset and create custom reports

Yes using Power BI REST API to ...READ MORE

answered Sep 18, 2018 in Power BI by Kalgi
• 42,430 points
138 views
0 votes
1 answer

Calculate age from dob field and another date value using slicer

Hi Karthick, Create a parameter with year range ...READ MORE

answered May 17 in Power BI by anonymous
• 31,840 points
66 views
0 votes
1 answer

How to add slicer from a different tables?

Hi, Join is normally performed to get ...READ MORE

answered Mar 1 in Power BI by Cherukuri
• 31,840 points
456 views