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
BrianEh
New Member

Showing only the latest observation for two combined values

I am trying to set a simple table that has values that can change.

 

I easily have it showing this:

Capture.PNG

 

What I am trying to do is only show the two rows where the date measure is the MAX. 

Basically, I am looking to do a table that only shows the latest observation for a Cart at a Room.

And I can't wrap my brain around how to do that.

 

4 REPLIES 4
jbocachica
Resolver II
Resolver II

Hi, when you said 2 rows, why is that?, based on your post, you must have just 1 row (The last observation is just 1 observation), please clarify that to help you.


Regards

John Bocachica
Senior BI Consultant
Information Workers
http://www.iwco.co

I am trying to have one row for 'blueberry' and one row for 'minty' each having a unique last observed datetime.

thus 2 rows (one for each cart).

 

Hi, you can use this expression in a new column

 

Its Max = if(YourTable[Measure] = calculate(max(YourTable[Measure]), filter(YourTable,YourTable[cart] = EARLIER(YourTable[cart]))), "Show", "No Show")

 

Just create a filter based in the new column

 

Regards

 

John Bocachica
Senior BI Consultant
Information Workers
http://www.iwco.co
Vvelarde
Community Champion
Community Champion

@BrianEh

 

Try with RankX

 

Ranking = RANKX(ALLEXCEPT(Table1,Table1[cart]),[measure],,DESC)

In Visual Level Filter Select 

 

Ranking is 1.




Lima - Peru

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.