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

Don'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.

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.