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.
Hi,
I am struggling on creating a table which I hope I could seek some helps here. I have upload my BI Sample here.
In my simpified model, I have 2 measures:
1,) Price_FX
2.)
Rank(Measure) =
RANKX(
FILTER(
ALLSELECTED('Table'[ID],'Table'[Supplier]),
'Table'[ID] = MAX('Table'[ID])),
[Price_FX(measure)],,ASC)
With my Original Data:
Project | ID | Supplier | Price(measure) |
BI-2021 | 1 | D | 15.6 |
BI-2021 | 1 | B | 31.2 |
BI-2021 | 1 | C | 62.4 |
BI-2021 | 1 | A | 15.6 |
BI-2021 | 2 | A | 93.6 |
BI-2021 | 2 | B | 46.8 |
BI-2021 | 2 | C | 39 |
I am hoping I could create a table like the below.
Appreciated if I could help some helps!
Solved! Go to Solution.
@ngct1112 , create a table using generate series
Bucket = generateseries(1,4,1)
measure =
var _tab = addcolumns(summarize('Table','Table'[ID],'Table'[Supplier]), "Rank",[Rank(Measure)], "_1",[[Price_FX(measure)])
return
maxx(filter(_tab, [Rank] = max(bucket[Value])),[_1])
Take max for supplier, or create a measure like above. Use bucket value in column in matrix
@ngct1112 , create a table using generate series
Bucket = generateseries(1,4,1)
measure =
var _tab = addcolumns(summarize('Table','Table'[ID],'Table'[Supplier]), "Rank",[Rank(Measure)], "_1",[[Price_FX(measure)])
return
maxx(filter(_tab, [Rank] = max(bucket[Value])),[_1])
Take max for supplier, or create a measure like above. Use bucket value in column in matrix
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
95 | |
94 | |
80 | |
71 | |
64 |
User | Count |
---|---|
115 | |
106 | |
96 | |
81 | |
72 |