Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
rohank11
Frequent Visitor

How to get blank count for only clusters in txn table

I need to count title where brand and therapy is blank

rohank11_0-1753116509104.png

I got cluster slicer from below table

rohank11_1-1753116568448.png

It is showing same blanks for all clusters, it should show blank count only for clusters present in txn table and zero for the rest

rohank11_2-1753116708825.png

Below measure is using

 
Total targets12 = CALCULATE(COUNT(Txn_Scorecard_Target[TargetName]),
          Txn_Scorecard_Target[Brand] = BLANK(),ALLEXCEPT(Txn_Scorecard_Target,Txn_Scorecard_Target[Brand],Txn_Scorecard_Target[Therapy])
)

model for reference
rohank11_0-1753117054966.png

 


KPI in prod so urgent help will be appreciated

1 ACCEPTED SOLUTION
rohank11
Frequent Visitor

Hi @v-sgandrathi ,
As above solutions were correct, none of them were complete solution
I found it using myself using below dax

Total targets12 = CALCULATE(
                DISTINCTCOUNT(Txn_Scorecard_Target[Index2]),
                FILTER(Txn_Scorecard_Target,Txn_Scorecard_Target[Brand] <> BLANK())) +

                CALCULATE(      
                DISTINCTCOUNT(Txn_Scorecard_Target[Index2]),Txn_Scorecard_Target[Brand] = BLANK(),
                REMOVEFILTERS(Mstr_Brand[Title]),
                REMOVEFILTERS(Mstr_Therapy[Therapy])
) +0

View solution in original post

8 REPLIES 8
rohank11
Frequent Visitor

Hi @v-sgandrathi ,
As above solutions were correct, none of them were complete solution
I found it using myself using below dax

Total targets12 = CALCULATE(
                DISTINCTCOUNT(Txn_Scorecard_Target[Index2]),
                FILTER(Txn_Scorecard_Target,Txn_Scorecard_Target[Brand] <> BLANK())) +

                CALCULATE(      
                DISTINCTCOUNT(Txn_Scorecard_Target[Index2]),Txn_Scorecard_Target[Brand] = BLANK(),
                REMOVEFILTERS(Mstr_Brand[Title]),
                REMOVEFILTERS(Mstr_Therapy[Therapy])
) +0

Hi @rohank11,

 

 

I'm glad you found a solution and resloved  the query. Thank you very much for sharing here.

Kindly mark your reply as the accepted solution so that others in the community can find it quickly.

 

Thankyou for connecting with Microsoft Community Forum

 

 

 

v-sgandrathi
Community Support
Community Support

HI @rohank11,

 

I wanted to check if you had the opportunity to review the information provided by @maruthisp, @Royel, and @Bmejia. Thank you everyone for your response to the query.

Please feel free to contact us if you have any further questions.
Thank you and continue using Microsoft Fabric Community Forum.

Hi @rohank11,

 

I wanted to check in your situation regarding the issue. Have you resolved it? Should you have any further questions, feel free to reach out.
Thank you for being a part of the Microsoft Fabric Community Forum!

 

Hi @rohank11,

 

Just wanted to follow up and confirm that everything has been going well on this. Please let me know if there’s anything from our end.
Please feel free to reach out Microsoft fabric community forum.

maruthisp
Super User
Super User

Hi @rohank11 


Please find the below attached pbix file with a solution I came up.

 

get blank count for only clusters in txn table.pbix

Please let me know if you have any further questions or need clarifications.

 

If this reply helped solve your problem, please consider clicking "Accept as Solution" so others can benefit too. And if you found it useful, a quick "Kudos" is always appreciated, thanks! 

 

Best Regards, 

Maruthi 

LinkedIn - http://www.linkedin.com/in/maruthi-siva-prasad/ 

X            -  Maruthi Siva Prasad - (@MaruthiSP) / X

Royel
Continued Contributor
Continued Contributor

Hi, @rohank11  you want to count the number of blanks when Brand and Therapy has no values. 

Try this measure: Now, this measure will count when both (Brand and Therapy) are blank. If, you want to improve, like if any one is blank then count use replace && with OR

Blank_Title_Count = 
CALCULATE(
    COUNTROWS('Transaction_Table'),
    FILTER(
        'Transaction_Table',
        ISBLANK('Transaction_Table'[Brand]) && 
        ISBLANK('Transaction_Table'[Therapy])
    )
)

 Find this helpful? ✔ Give a Kudo • Mark as Solution – help others too!

Bmejia
Super User
Super User

Willl this work

Total targets12 =
CALCULATE(
    COUNT(Txn_Scorecard_Target[Cluster]),
        Txn_Scorecard_Target[Brand]=""
            && Txn_Scorecard_Target[Therapy]="")

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.