Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
u92690
Frequent Visitor

Dynamic monthly MAX depending on slicer selection

Hey all,

 

I'm struggling to find a solution in order to calculate a measure which provide the cusmized Max I need. In particular, I need the monthly max for each Division to show it in a graph, but i also want to get the maximum considering more than one division (that i choose on the slicer).  Example below: I want power BI to calculate what the sum of daily sales for division A and B and provides the max for each month. 

 

I managed to calculate the max per monthy for each division by creating a column, but it does not allow me to provide customized maximums depending on what I select.

 

Please find there the .pbix and the excel and let me know if you know how to do it!

 

Thanks!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@u92690 , try a measure like

 

maxx(values(date[Date]), calculate(sumx(Table, divide([A],[B]))))

View solution in original post

2 REPLIES 2
u92690
Frequent Visitor

Superb! Thanks!

amitchandak
Super User
Super User

@u92690 , try a measure like

 

maxx(values(date[Date]), calculate(sumx(Table, divide([A],[B]))))

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.