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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
FilipFireFlyBI
Resolver I
Resolver I

minimal value percountry/category with a measure

Hi all,

 

I have a small example table (left).  It contains per country/category all available models with the according annual price.

I want a matrix table (result table) using measures with the minimum price (min price) per Country Category. This I already created succesfully.

Now I also want to show in a Measure (no calc. column or seperate summarize table!) the Model that is corresponding to to this minimal annual price (see Yellow part). So for Country BE with Category A, the cheapes price is 579 and this is model A4.

 

See below the dropbox link for the PBIX file.
Thanks in advance!

minimal value per category.jpg

 

 

https://www.dropbox.com/s/uerqf5i2xf61lkv/Minimum%20value%20per%20category.pbix?dl=0

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

@model = VAR _Min =[min price]
RETURN
CALCULATE(MIN('dim Models'[Model]),FILTER(ALL('fact Lease'),[Price]=_Min))

View solution in original post

2 REPLIES 2
FilipFireFlyBI
Resolver I
Resolver I

ah indeed that is an easy solution. Thanks Ahmedx!

Ahmedx
Super User
Super User

@model = VAR _Min =[min price]
RETURN
CALCULATE(MIN('dim Models'[Model]),FILTER(ALL('fact Lease'),[Price]=_Min))

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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