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
Roym
Helper IV
Helper IV

Show results if filter is blank

I have the following code that shows the number of issues were the control name is not blank. This works correctly. But now I need to have it the other way around, so it should count if there is not a link, so the Control name is blank. I thought I could do this by changing the 'not(isblank'  to 'isblank'.  But then I get no results. Is there something I do wrong in this code?

 

Working, not blank calculation:

Measure = CALCULATE ( DISTINCTCOUNT(Table_Issues[Name]),
filter (Table_Controls , not(isblank(Table_Controls[Control Name] )) ) )
 
Not working isblank calculation:
Measure = CALCULATE ( DISTINCTCOUNT(Table_Issues[Name]),
filter (Table_Controls , isblank(Table_Controls[Control Name]) ) )
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Roym , It should work

Try like

 

M1 =DISTINCTCOUNT(Table_Issues[Name])

M2= sumx(filter( values(Table_Controls[Control Name]), isblank([M1])),[M1])

 

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Roym , It should work

Try like

 

M1 =DISTINCTCOUNT(Table_Issues[Name])

M2= sumx(filter( values(Table_Controls[Control Name]), isblank([M1])),[M1])

 

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

I got it working this way, thanks!!

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Fabric Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.