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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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