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

Dealing with blank/null values in Dynamic Decomposition Trees

 
1 ACCEPTED SOLUTION
TheoC
Super User
Super User

Hi @Anonymous, I am unsure how you have created your Parent Count measure, however, I recommend something of the following: 

 

Measure:= COUNTROWS(CALCULATETABLE(Table, Table[Field]<> BLANK() && Table[Field]<>"#N/A"))

 

(note that the original solution can be found here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Exclude-quot-N-A-quot-OR-Blanks/td-p/805991)

 

You could adjust to suit your requirements, such as:

 

Measure:= COUNTROWS ( CALCULATETABLE ( Table , Table [Field] <> BLANK ())

 

Hope this helps 🙂 

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

View solution in original post

2 REPLIES 2
v-xiaoyan-msft
Community Support
Community Support

Hi @Anonymous ,

 

Does the replies above solve your problem? If it has been solved, please mark the correct reply as the standard answer to help the other members find it more quickly.Thank you very much for your kind cooperation!

 

Hope it helps,


Community Support Team _ Caitlyn

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 @Anonymous, I am unsure how you have created your Parent Count measure, however, I recommend something of the following: 

 

Measure:= COUNTROWS(CALCULATETABLE(Table, Table[Field]<> BLANK() && Table[Field]<>"#N/A"))

 

(note that the original solution can be found here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Exclude-quot-N-A-quot-OR-Blanks/td-p/805991)

 

You could adjust to suit your requirements, such as:

 

Measure:= COUNTROWS ( CALCULATETABLE ( Table , Table [Field] <> BLANK ())

 

Hope this helps 🙂 

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.