Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Summarize and remove any rows which has a blank total

I have written a DAX code which returns names of individuals with a count of how many customers they own, however what I need to do is only retrieve the names or essentially filter out the names who have a blank total, how would I go about this as I have tried everything

summarizedCAM = 
    SUMMARIZE (
            d_cam,
            d_cam[name],
            "Total", DISTINCTCOUNT(ftm[p_key])
     
   )
   

Current Output:

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

summarizedCAM = 
FILTER(
    SUMMARIZE (
            d_cam,
            d_cam[name],
            "Total", DISTINCTCOUNT(ftm[p_key])
    
   )
   ,ISBLANK([Total])=FALSE()
)
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading