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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
PascalCL
Frequent Visitor

Totel Sum worg

Hi I have the problem 

 

When I display the total sum of the measure, the result does not right.

 

PascalCL_0-1662386514660.png

 

how can i fix this?

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi  @PascalCL 

Thanks for reaching out to us.

This is a typical problem, please try this, create 2 measures,

Vorschlag CT 2 =
IF (
    SUM ( 'Sales invoices 2021/2022 (2)'[Quantity] ) = 0,
    BLANK (),
    DIVIDE (
        SUM ( 'Sales invoices 2021/2022 (2)'[Quantity] ) - 'Item'[Theoretischer Vorrat],
        SUM ( 'Item'[Anz. / Paket] )
    )
)
totalrow= IF(ISFILTERED('Table'[name]),[Vorschlag CT 2],sumx('Sales invoices 2021/2022 (2)',[Vorschlag CT 2]))

 

 

Best Regards,

Community Support Team _Tang

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

View solution in original post

3 REPLIES 3
v-xiaotang
Community Support
Community Support

Hi  @PascalCL 

Thanks for reaching out to us.

This is a typical problem, please try this, create 2 measures,

Vorschlag CT 2 =
IF (
    SUM ( 'Sales invoices 2021/2022 (2)'[Quantity] ) = 0,
    BLANK (),
    DIVIDE (
        SUM ( 'Sales invoices 2021/2022 (2)'[Quantity] ) - 'Item'[Theoretischer Vorrat],
        SUM ( 'Item'[Anz. / Paket] )
    )
)
totalrow= IF(ISFILTERED('Table'[name]),[Vorschlag CT 2],sumx('Sales invoices 2021/2022 (2)',[Vorschlag CT 2]))

 

 

Best Regards,

Community Support Team _Tang

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

amitchandak
Super User
Super User

@PascalCL , You measure might be using row context.

 

You need a measure like, using column in visual and your measure

 

sumx(summarize(Table, Table[Col1], Table1[Col2],"_1", [Measure]) , [_1])

 

Refer to this video if needed

https://www.youtube.com/watch?v=ufHOOLdi_jk

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Unfortunately, I do not quite get along with it...

 

here the measure with which I work.

 

Vorschlag CT 2 =
IF(
     SUM('Sales invoices 2021/2022 (2)'[Quantity]) =0,
       BLANK(),
       DIVIDE(
     SUM('Sales invoices 2021/2022 (2)'[Quantity]) - 'Item'[Theoretischer Vorrat],
     SUM('Item'[Anz. / Paket])
     )
)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.