Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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 )
),"")
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
76 | |
63 | |
51 | |
48 |
User | Count |
---|---|
204 | |
86 | |
64 | |
59 | |
56 |