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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Syndicate_Admin
Administrator
Administrator

MEASURE DOES NOT ADD UP IN SUBTOTALS

Hello

I have a sales and inventory dashboard, with a branch-item level and I get an incognita with a measure that does not add up in the subtotals per branch, it only considers me the articles.

the idea that I want to capture is that the articles with inventory in zero I add them by branch, to know how many articles I have to fill, my formula is:

Ceros = IF([KPI]=0,1,BLANK())

annex image for best illustration.

hopefully you can help me, thank you very much.

BI-NOSUMA.jpg

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

Hi @Syndicate_Admin 

I think [KPI] and [Ceros] are both measures. Your problem should be that there is no total in [Ceros] measure in your matrix visual as below.

1.png

I suggest you to create a new measure based on [Ceros] measure.

New Ceros based on Ceros = 
SUMX('Table',[Ceros])

Result is as below.

2.png

Best Regards,
Rico Zhou

 

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

View solution in original post

3 REPLIES 3
TheoC
Super User
Super User

TheoC_0-1634192853925.png

 

Hi @Syndicate_Admin,

 

I applied your steps and created a Calculated Column with your "CEROS" and got the following:

TheoC_1-1634192854353.png

 

I think you may have used a measure instead of a Calculated Column possibly? 

 

TheoC_2-1634192854521.png

 

Let me know either way! Hope the above helps.  If the above doesn't solve your problem, I recommend checking the field settings on your visual and ensure you have the Row Subtotals on for your relevant columns 🙂

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

v-rzhou-msft
Community Support
Community Support

Hi @Syndicate_Admin 

I think [KPI] and [Ceros] are both measures. Your problem should be that there is no total in [Ceros] measure in your matrix visual as below.

1.png

I suggest you to create a new measure based on [Ceros] measure.

New Ceros based on Ceros = 
SUMX('Table',[Ceros])

Result is as below.

2.png

Best Regards,
Rico Zhou

 

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

TheoC
Super User
Super User

Hi @Syndicate_Admin,

 

I applied your steps and created a Calculated Column with your "CEROS" and got the following:

TheoC_0-1634000459846.png

I think you may have used a measure instead of a Calculated Column possibly? 

 

TheoC_1-1634000486957.png

Let me know either way! Hope the above helps.  If the above doesn't solve your problem, I recommend checking the field settings on your visual and ensure you have the Row Subtotals on for your relevant columns 🙂

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.