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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
ssk_1984
Frequent Visitor

Show no data available on the card when multiple card selection

Hi All,

 

I have page with year, month, region, country, vertical, horizontal filter and showing values on the visual by distinct count of project.

Here i have used card visuals to show 

NoDataGov = IF(ISBLANK(COUNT(GOVERNANCE[PROJECT_ID])),"No NCs","")

, if i random selection of other slicers again showing blank visuals. Please help to fix that

How to include all filter to validate there is blank  vaues are appearing or not

ssk_1984_0-1725623251556.png

 

 

 

1 ACCEPTED SOLUTION
v-linhuizh-msft
Community Support
Community Support

Thanks for the concern from AnkitKukreja.

 

Hi  @ssk_1984 , 

Based on your description, I've created the following sample tables:

 vlinhuizhmsft_0-1725863228033.png

 

You can modify the original code to determine if the number of Project_ID is null when all the slicers have been applied.

The modified measure is as follows:

MEASURE =
IF (
    ISFILTERED ( 'Date'[Month] ) && ISFILTERED ( 'Country'[Country] )
        && ISFILTERED ( Region[Region] )
        && ISBLANK ( COUNT ( Projects[Project_ID] ) ),
    "No NCs",
    ""
)

 

Here are the results:

 

vlinhuizhmsft_1-1725863913899.png

vlinhuizhmsft_0-1725863892799.png

 

 

 

Best Regards,
Zhu
Community Support Team

 

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

 

View solution in original post

2 REPLIES 2
v-linhuizh-msft
Community Support
Community Support

Thanks for the concern from AnkitKukreja.

 

Hi  @ssk_1984 , 

Based on your description, I've created the following sample tables:

 vlinhuizhmsft_0-1725863228033.png

 

You can modify the original code to determine if the number of Project_ID is null when all the slicers have been applied.

The modified measure is as follows:

MEASURE =
IF (
    ISFILTERED ( 'Date'[Month] ) && ISFILTERED ( 'Country'[Country] )
        && ISFILTERED ( Region[Region] )
        && ISBLANK ( COUNT ( Projects[Project_ID] ) ),
    "No NCs",
    ""
)

 

Here are the results:

 

vlinhuizhmsft_1-1725863913899.png

vlinhuizhmsft_0-1725863892799.png

 

 

 

Best Regards,
Zhu
Community Support Team

 

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

 

AnkitKukreja
Super User
Super User

Hi! @ssk_1984 

 

Can you attach your sample pbix file and share the expected solution, there might be a relationship issue among those fields.

 

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
https://topmate.io/ankit_kukreja

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.