Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Measures need to replace by Table joins

i have to replace a meaure with table which is like below

 

measure= if (sum(Total)=5, 2.33, if(sum(Total)=6,4.99, if(sum(Total)=9,8.33.......) continues......

i have above set of statements which are hardcoded.......i want to reduce that by using separate table like below

 

Total  Value

5        2.33

6        4.33

9        8.33

 

if i join this table with fact table, how to tackle sum(Total)=5, ?

 

Thanks in advance

3 REPLIES 3
Anonymous
Not applicable

No it is not working

i created another table named as Test which has columns Total, Value...i joined both fact and text on Total....i'm able to see values....

 

My query is Measure consisting SUM, how we can tackle that

@Anonymous I am still not able to understand the issue. Can you please elaborate?

rajulshah
Resident Rockstar
Resident Rockstar

@Anonymous 

You can use the following DAX measure:

Measure =
VAR SelectedTotalValue =
    SELECTEDVALUE ( Table[Total] )
VAR TotalValue =
    SUM ( Table1[Total] )
RETURN
    CALCULATE (
        MAX ( Table[Value] ),
        FILTER ( Table, SelectedTotalValue = TotalValue )
    )

 

Here, Table is the one that you have created and Table1 is the table from which you are calculating the sum.

 

Please let me know if this didn't work.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors