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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ddembla
Frequent Visitor

USE of MAX and Slicers

Hi All,

 

I have a table which displays hourly pay per position. I'm using MAX(HourlyPay) to get the maximum value in the table and get a value 60 for example. But when I apply a slicer (based on department), the value still show's as 60. Is there a way to recalculate the MAX of HourlyRate based on the Slicers?

4 REPLIES 4
amitchandak
Super User
Super User

Have you used all(Table) or all(Department) or all(Table[Department]) in your formula ?

No. Just using the basic formula,

 

MaxRate = MAX(MyTable[Hourly Pay])

Hi @ddembla ,

Are "Hourly Pay" column and "department" column from the same table? If not, what is the relationship between the tables? Can you please share some sample data and screen shots? Then we will understand clearly and solve it quickly.

 

Best Regards,

Xue Ding

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Xue (@v-xuding-msft),

 

I have a table called Occupants which contains Occupants details. This is related to PayDetails table which contains "Hourly Pay". The department is stored in another table called OrgStructure.

 

Relationships:
Occupants to PayDetails (1:1)
Occupants to OrgStructure (*:1)

 

The column MAX(HourlyPay) which I'm trying to calculate is in the table Occupants.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.