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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
lhall_csi
Frequent Visitor

Max Tier Measure

Good morning, have a measure that I cant seem to figure out and need another set of eyes on. In the example below the goal is to only show the check box on the last record where the "Total Revenue MTD PW" value >= MTD Threshold. The MTD Threshold is a measure that basically taxes the minimum value from each rows and divides that by number of days in the current month. Then multiplies that result by number of days so far. I understand why my Projected Tier New measure is giving me the results that it is but all my attempts to return only the last value have not succeeded thus far. Any help would be greatly appreciated. 

lhall_csi_0-1741874692047.png

 

Projected Tier New = 

var _Revenue = CALCULATE([Total Revenue MTD PW],DimServiceGroup[Revenue Group Flag] = "1") 

RETURN

SWITCH(
    TRUE(),
    _Revenue >= [MTD Threshold], UNICHAR(10003),BLANK())

 

3 REPLIES 3
lbendlin
Super User
Super User

what do you mean by "last record" ? Sorted how?

The tiers table has a sort order column, so in this instance I would want to return the last tier name where Total Revenue MTD PW >= MTD Threshold. Given my example above the Total Revenue MTD PW = 8119 so it should return Preimer Pro. The sort order column is sorting the table by MTD Threshold low to high. 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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