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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi
I have the following layout in my visual. MCode comes from a dimension table. Name, Code, No and Value are generated by a measure. Thanks
Name Measure =
| MCode | Name | Code | No | VAL |
| ABC | AAA | AAA1 | 1 | 10 |
| CDE | BBB | BBB1 | 2 | 11 |
| EFG | CCC | CCC1 | 3 | 12 |
| GHI | DDD | DDD1 | 4 | 13 |
| IJK | EEE | EEE1 | 5 | 14 |
| TOTAL | EEE | EEE1 | 15 | 60 |
I expect the below as a result
| MCode | Name | Code | No | VAL |
| ABC | AAA | AAA1 | 1 | 10 |
| CDE | BBB | BBB1 | 2 | 11 |
| EFG | CCC | CCC1 | 3 | 12 |
| GHI | DDD | DDD1 | 4 | 13 |
| IJK | EEE | EEE1 | 5 | 14 |
| TOTAL | 15 | 60 |
Solved! Go to Solution.
pls try this
Code Measure = IF(HASONEVALUE(yourtable[Mcode]),
CALCULATE (
MAXX (
SUMMARIZE ( 'Fact Table Ordered', FI_Details[Voting_Group] ),
FI_Details[Voting_Group]
),
LASTNONBLANK ( 'Date'[FiscalYear], 0 )
),"")
------------
Name Measure =IF(HASONEVALUE(yourtable[Mcode),
CALCULATE (
MAXX (
SUMMARIZE ( 'Fact Table Ordered', FI_Details[FI_Name] ),
FI_Details[FI_Name]
),
LASTNONBLANK ( 'Date'[FiscalYear], 0 )
),"")
pls try this
Code Measure = IF(HASONEVALUE(yourtable[Mcode]),
CALCULATE (
MAXX (
SUMMARIZE ( 'Fact Table Ordered', FI_Details[Voting_Group] ),
FI_Details[Voting_Group]
),
LASTNONBLANK ( 'Date'[FiscalYear], 0 )
),"")
------------
Name Measure =IF(HASONEVALUE(yourtable[Mcode),
CALCULATE (
MAXX (
SUMMARIZE ( 'Fact Table Ordered', FI_Details[FI_Name] ),
FI_Details[FI_Name]
),
LASTNONBLANK ( 'Date'[FiscalYear], 0 )
),"")
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 55 | |
| 42 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 113 | |
| 106 | |
| 38 | |
| 35 | |
| 26 |