Forum Discussion
tomcat2018
8 years agoRegular Visitor
Power BI - Compare Individual vs Average data per month
Hi, imagine the scenario of sales data per store per month Is there any way that I would select a store from Slicer and it would compare its indivi...
- 8 years ago
Hi,
Using Query Editor, you should first unpivot your dataset to ultimately have a 3 column dataset - Store, Month and Sales. In a visual of your choice, select any Store in the Filter/slicer and write the following measures:
- Revenue = SUM(Data[Sales])
- Total revenue = CALCULATE([Revenue],ALL(Data[Store]),ALL(Data[Month]))
Hope this helps.
Ashish_Mathur
Super User
8 years agoHi,
Using Query Editor, you should first unpivot your dataset to ultimately have a 3 column dataset - Store, Month and Sales. In a visual of your choice, select any Store in the Filter/slicer and write the following measures:
- Revenue = SUM(Data[Sales])
- Total revenue = CALCULATE([Revenue],ALL(Data[Store]),ALL(Data[Month]))
Hope this helps.
tomcat2018
8 years agoRegular Visitor
Thanks for your help.