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
Anonymous
Not applicable

Exclude null value in grand total calculation

How to exclude or blank records from below DAX Calculation? % of Grand Total = DIVIDE ( SUM ('OD Database'[sales]), CALCULATE ( SUM ( 'OD Database'[sales]), ALL ( 'OD Database'[Trip Commodity Converted] )) ) Regards

4 REPLIES 4
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

Could you provide sample data? For now, I guess it may be because you have two tables, and then because of incomplete data in one table.

3.png

屏幕截图 2020-10-19 145538.png

屏幕截图 2020-10-19 145556.png

 

 

Best Regards,

Stephen Tao

 

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

alxdean
Advocate V
Advocate V

Blanks would automatically beexcluded from the source. if you want to avoid a BLANK value when certain filters are applied, then simply add +0 right at the end and BLANK becomes 0

amitchandak
Super User
Super User

@Anonymous , The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.


 

Anonymous
Not applicable

From the below screenshot, 83 % of trips are present with blank rows, I want to exclude the blank rows and then calculate the Grand total?

yamunakosireddi_0-1602735260150.png

 

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.