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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors