The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Can someone please help me create a measure to get a specific value based on multiple measures?
In the table below based on my Index, I need to get the equivalent Rolling30D with SI value sitting at the 75th percentile.
For the sample data below, 75% of 41 would be 31 so I need to be able to retrieve the value 124.
I tried creating a measure myself which I've called Trigger Line however it gives me multiple rows, I just need a single number.
In the table above, the trigger line should only show the value of 124 for all the rows. How can I achieve this?
Index is also a measure
HI @CEvange,
You cna try to use the following measure formula if it suitable for your requirement:
formula =
VAR summary =
SUMMARIZE (
ALLSELECTED ( 'Date' ),
'Date'[Date],
"Rolling30D", [* Rolling30D with SI],
"Index", [*Index],
"TL", [*Trigger Line]
)
VAR percent = 0.75
VAR target =
ROUNDUP ( percent * COUNTROWS ( summary ), 0 )
RETURN
MAXX ( FILTER ( summary, [Index] = target ), [TL] )
Regards,
Xiaoxin Sheng
Hi @Anonymous ,
I tried the measure you provided unfortunately it just came up as blank.
User | Count |
---|---|
15 | |
11 | |
8 | |
8 | |
7 |
User | Count |
---|---|
21 | |
20 | |
11 | |
10 | |
7 |