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

Formula Total Sales to not show elements with no data

Robertois_0-1620049034345.png

I would like to get that table but instead of using external filter context as the followin image, inside the formula. Thanks!

 

Robertois_1-1620049167646.png

 

1 ACCEPTED SOLUTION

Hi, @Anonymous 

Thank you for the sharing.

I am not sure if I missed something from your explanation, but please check the below picture and the sample pbix file's link down below, whether it is what you are looking for.

 

Picture2.png

 

Sales ALL V2 =
IF (
NOT ISBLANK ( [Total Sales] ),
CALCULATE ( [Total Sales], ALL ( Products[ProductName] ) ),
BLANK ()
)

 

https://www.dropbox.com/s/wmv6uvope5o2q97/18%20DAX%20Fridays%21%20Period-To-Date_Curbal.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Here you go. Thank you.

 

18 DAX Fridays! Period-To-Date_Curbal 

Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

Please try something like the below.

 

Sales All Fix = if (not isblank ( [total sales]), [Sales All])

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Anonymous
Not applicable

Hi @Jihwan_Kim  !  Thank you for the reply, but still not working...

 

Added some formulas:

 

Total Sales = SUM(Order_Details[Tot sales])
Sales ALL = CALCULATE([Total Sales], ALL(Products[ProductName]))
Measure = IF(NOT(ISBLANK([Total Sales])),[Total Sales])
 
Robertois_0-1620051920052.png

 

Thank you!

 

Hi, @Anonymous 

Thank you for your feedback.

If it is OK with you, please share your sample pbix file's link here, then I can try to come up with a more accurate measure.

Thank you.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Anonymous
Not applicable

Hi @Jihwan_Kim ,

 

Here you go the file. Thank you in advance 🙂

 

18 DAX Fridays! Period-To-Date_Curbal.pbix 

Hi, @Anonymous 

Thank you for the sharing.

I am not sure if I missed something from your explanation, but please check the below picture and the sample pbix file's link down below, whether it is what you are looking for.

 

Picture2.png

 

Sales ALL V2 =
IF (
NOT ISBLANK ( [Total Sales] ),
CALCULATE ( [Total Sales], ALL ( Products[ProductName] ) ),
BLANK ()
)

 

https://www.dropbox.com/s/wmv6uvope5o2q97/18%20DAX%20Fridays%21%20Period-To-Date_Curbal.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Anonymous
Not applicable

It works perfectly @Jihwan_Kim 

 

Was my fault. Must've misunderstood you.

 

Thank you!

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.