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
17 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
• 17,870 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
221 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,900 points
1,896 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
• 37,430 points
49 views
0 votes
1 answer

How to publish .pbix report from power bi desktop to power bi service directly?

To save powerbi file directly to report ...READ MORE

answered Sep 27, 2018 in Power BI by Kalgi
• 37,430 points
144 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
60 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
483 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
• 14,080 points
89 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
• 37,430 points
81 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
• 17,870 points
28 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
• 17,870 points
149 views