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
Frankie_Vannini
Advocate I
Advocate I

Grouping data

Hi there

possibly it is  a silly question however I was not able to find a solution (my fault for sure...)

 

Assuming I have a table with several columns, looking at the example below how can I dinamically grouping data with a result that is grouped by Level, then shows the member and just the cheapest price? in essence the result should display just 3 rows:

High, Dark Blue, 19.3

Medium, Black, 16.1

Low, Blue, 9.8

The purpose is to build  a tooltip report page based on on this logic that shows the result dinamically once the mouse is passed on the chart where the tooltip is linked

 

Thanks in advance

 

F

     
LevelMemberModelPriceOther fields…
HighRedalfa21,4 
HighVioletbeta20,1 
MediumBlackgamma16,1 
HighWhitemickey22,2 
LowBlueomega9,8 
LowBrownice cream15,4 
MediumPinkpizza17,2 
HighDark Bluewater19,3 
LowGreenwine11,3 

 

2 REPLIES 2
Greg_Deckler
Super User
Super User

One way you could do this is to create a filtering measure like:

 

__Show = 
VAR __table = SUMMARIZE(ALL(Table5),[Level],"__Min",MIN([Price]))
VAR __level = MAX([Level])
VAR __price = MAX([Price])
RETURN
IF(__price = MAXX(FILTER(__table,[Level] = __level),[__Min]),1,0)

Then just filter out your 0's.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler 

 

thanks you for your answer

your solutions works perfectly on the report page, where I've the table, so only the cheapest price is displayed for each level however it doesn't work when I use that page as tooltip report page

 

in essence when I move the mouse over the chart linked to that report page as a tooltip, the window is empty, no data displayed. 

 

I've seen this method takes a while on calculating the result on the report page (almost 40M records to check) so possibly it is difficult to manage the result as fast as it should be moving the mouse over the charts data

 

Thanks

 

Krgds

F

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.

Top Solution Authors