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
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!

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.