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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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