Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I am trying to return the group for the max value of Consumer Uplift Pre vs Dur.
I had it working with a topn formula but that didnt return a group if the value was negative.
Any ideas?
CALCULATE
(LASTNONBLANK ( 'Attributes'[SecondaryGroup],1)
,MAXX(KEEPFILTERS(VALUES('Attributes'[PrimaryGroup])),CALCULATE([Consumer Uplift Pre vs Dur])),TRUE())
Solved! Go to Solution.
Yeah, those can get annoying. I think you need something like [Primary Group] = MAXX(...
But, tough to really say with your formula. I reformatted it to this to make it easier to understand. I have no idea what the TRUE() is doing for you.
CALCULATE(
LASTNONBLANK ( 'Attributes'[SecondaryGroup],1),
MAXX(
KEEPFILTERS(
VALUES('Attributes'[PrimaryGroup])
),
CALCULATE([Consumer Uplift Pre vs Dur])
),
TRUE())
Yeah, those can get annoying. I think you need something like [Primary Group] = MAXX(...
But, tough to really say with your formula. I reformatted it to this to make it easier to understand. I have no idea what the TRUE() is doing for you.
CALCULATE(
LASTNONBLANK ( 'Attributes'[SecondaryGroup],1),
MAXX(
KEEPFILTERS(
VALUES('Attributes'[PrimaryGroup])
),
CALCULATE([Consumer Uplift Pre vs Dur])
),
TRUE())
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 37 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 89 | |
| 73 | |
| 66 | |
| 65 |