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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
gavexe
Frequent Visitor

Max per Category doesn't work with NAMEOF

I want to calculate a measure (_sellouts %) for different time periods (Day, week, month, year) selected by user.

It works almost fine:

gavexe_0-1692921775443.png

gavexe_1-1692921833669.png

But, as you can see Maximum value calculates wrong. 

If I get rid of selection and hardcode time period, the same code works well:

gavexe_2-1692921958397.png

It seems as if Max per category doesn't work with NAMEOF() functions.

How can I get the maximum?

 

 

1 REPLY 1
Mahesh0016
Super User
Super User

hello @gavexe as per my experience, you need to create a relationship between (_sellouts %) measure table and  the NAMEOF() table. Thank You.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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