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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

count number of rows with value in it for given slicer value

New to dynamic calaculations, need help.

 

Table A (Dimension, Slicer) 

Product Id Product Name

123             abc

234             def

 

Table B (Fact, Table Visual)

Product Id        Sold date      Location Sold

123                   12th sept       NY

123                   15th Sept     

234                   11th Sept      NY

234                   15th Spet      ATL

 

Report - 

1.  Has a slicer to pick product id

2. A table, or card visual to show a "Location Data Missing" flag as "Yes" if there any null/blank values for the "Location Sold" field. 

 

For the above table data example - when the slicer is filtered for Product Id 123 -  The "Location Data Missing" will be "Yes"and for Product Id 234 it will "No"

 

Need help creating a calaculated column or measure, not sure how to get started. 

1 ACCEPTED SOLUTION
isjoycewang
Super User
Super User

Hi @Anonymous ,

 

Try to create below measure in the card visual:

 

Location Data Missing = 
IF( COUNTBLANK('Fact'[Location Sold]) > 0 , "Yes", "No" )

 

 

isjoycewang_0-1702482083640.png

 

Best Regards,

Joyce

View solution in original post

2 REPLIES 2
isjoycewang
Super User
Super User

Hi @Anonymous ,

 

Try to create below measure in the card visual:

 

Location Data Missing = 
IF( COUNTBLANK('Fact'[Location Sold]) > 0 , "Yes", "No" )

 

 

isjoycewang_0-1702482083640.png

 

Best Regards,

Joyce

Anonymous
Not applicable

thank you @isjoycewang !

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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