cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
wangjuan303
Helper III
Helper III

How to create total measure base on slicer

I need to create a total measure for the report, 

this measure like under screenshot, 

it need to show: 200486.88 in report. 

it will base on slicer choice, dynamic get the total number, 

and it always matches with a total of Sum of Sales,

Thank you 

 

wangjuan303_0-1685661181432.png

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Try these measures

Total = sum(Data[Sales])

Total of selected products = calculate([Total],allselected(Data[product]))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

Try these measures

Total = sum(Data[Sales])

Total of selected products = calculate([Total],allselected(Data[product]))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors