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 products 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-lianl-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

Do you want to calculate the number of products with KPI = 0 in each group?

Please try measure like below:

Measure 2 = 
IF ( ISINSCOPE ('Table'[sub_] ), [Measure],CALCULATE(COUNTX(VALUES('Table'[sub_]),[Measure]),ALLEXCEPT('Table','Table'[Type])) )

Vlianlmsft_0-1634187268171.png

 


Best Regards,
Liang
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

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

Do you want to calculate the number of products with KPI = 0 in each group?

Please try measure like below:

Measure 2 = 
IF ( ISINSCOPE ('Table'[sub_] ), [Measure],CALCULATE(COUNTX(VALUES('Table'[sub_]),[Measure]),ALLEXCEPT('Table','Table'[Type])) )

Vlianlmsft_0-1634187268171.png

 


Best Regards,
Liang
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

@Syndicate_Admin try the below measure please 🙂
TheoC_1-1634013582744.png

 

 

Ceros =


VAR _KPI = SUM ( 'Table'[KPI] )

RETURN

IF ( _KPI = BLANK() , 0, _KPI )

 

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.

Top Solution Authors