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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Level Of Detail Inquiry

I have two ORGCODE, the CDW and the SGW,

 

How do i get the FIXED Level of detail value for the SEGMENT in multiplying the;


Fixed Segments = Cost in ORGCODE = SGW multiply by the Qty Rate in ORGCODE = CDW. 

 

In Tableau : FIXED [SEGMENTS]: MIN(IF [ORGCODE]="SGW" THEN [ITEM_COST] END)} * [QUANTITY_RATE])

 

How about in Power BI?

 

Laedays_0-1625753822514.png

 

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

I am not familiar with formulas in Tableau.

Did you want to group by Segments in powerbi to get the minimum  value of [ITEM_COST]  * [QUANTITY_RATE]) ?

Please try formula as nelow:

M_Cost = 
CALCULATE (
    MAX ( 'Table'[Cost] ),
    FILTER (
        ALL ( 'Table' ),
        'Table'[ORGCODE] = "SGW"
            && 'Table'[SEGMENTS] = MAX ( 'Table'[SEGMENTS] )
    )
)
M_Rate = 
CALCULATE (
    MAX ( 'Table'[Rate] ),
    FILTER (
        ALL ( 'Table' ),
        'Table'[ORGCODE] = "CDW"
            && 'Table'[SEGMENTS] = MAX ( 'Table'[SEGMENTS] )
    )
)
FIXED Level of detail value = 
[M_Cost]*[M_Rate]

Please check my sample file for more details.

 

If doesn't meet your requirement , please explain the formula in detail.It will be better if you can share you expected in excel.

 

Best Regards,
Community Support Team _ Eason

View solution in original post

1 REPLY 1
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

I am not familiar with formulas in Tableau.

Did you want to group by Segments in powerbi to get the minimum  value of [ITEM_COST]  * [QUANTITY_RATE]) ?

Please try formula as nelow:

M_Cost = 
CALCULATE (
    MAX ( 'Table'[Cost] ),
    FILTER (
        ALL ( 'Table' ),
        'Table'[ORGCODE] = "SGW"
            && 'Table'[SEGMENTS] = MAX ( 'Table'[SEGMENTS] )
    )
)
M_Rate = 
CALCULATE (
    MAX ( 'Table'[Rate] ),
    FILTER (
        ALL ( 'Table' ),
        'Table'[ORGCODE] = "CDW"
            && 'Table'[SEGMENTS] = MAX ( 'Table'[SEGMENTS] )
    )
)
FIXED Level of detail value = 
[M_Cost]*[M_Rate]

Please check my sample file for more details.

 

If doesn't meet your requirement , please explain the formula in detail.It will be better if you can share you expected in excel.

 

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.