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
abc_777
Super User
Super User

hi

Hi

 

Hello some one please help me why i am getting this total

is this a measure switching. from Piece to KG 

 

Total Quantity in KG (Measure) =
(SUM('bm_retail_t sale'[SQTY])
        - SUM('bm_retail_t sale'[RQTY])) * SUM('BM Product List'[Weight in (KG)])
 
also tried 
Total Quantity in KG (Measure) =
CALCULATE
(SUMX
    ('bm_retail_t sale', ('bm_retail_t sale'[SQTY]
        -'bm_retail_t sale'[RQTY])) * SUM('BM Product List'[Weight in (KG)])
 

abc_777_0-1669134252147.png

Total Quantity in Piece (Measure)
CALCULATE
(SUMX
    ('bm_retail_t sale', ('bm_retail_t sale'[SQTY]
        -'bm_retail_t sale'[RQTY])))

abc_777_1-1669134374688.png

 

abc_777_2-1669134690805.png

 

please help me out

1 ACCEPTED SOLUTION

here i chare another file. my total is incorrect. and i want generic measure to use as product department, product name product category , customer purchase etc.

 

please help me

View solution in original post

3 REPLIES 3
mangaus1111
Solution Sage
Solution Sage

Hi @abc_777 ,

I don´t know, maybe you can correct the total creating an additive measure like this:

 

SUMX(
    VALUES('Table'[ITEM_NAME]),
    [YourMeasure]
)

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

this is just a simple calculation. I can not type values as item name as i use this measure to other visualisations as well. like product departmenr, or product category or customer product purchased etc.

 

This measure is generic to use piece and KG

 

I attached sample file. please see the sheet name 

 

Piece and KG

 

my total or grand total are not correct. please help me what is the issue

 

 

 

here i chare another file. my total is incorrect. and i want generic measure to use as product department, product name product category , customer purchase etc.

 

please help me

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.