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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Flag a cell with 1 if not blank per month and blank if blank and calculate the total number of flags

Basically I have a measure that is the Net Invoice Amount. What I'm trying to do is display flags (1) is the measure (Net Invoice Amt) is not blank in that month within that row.

 

See the image:

Capture.PNG

 

I have tried the measure formula: RowNum = CALCULATE(COUNTX('Store Invoice','Store Invoice'[Store ID]), FILTER('Secondary Sales Invoices','Secondary Sales Invoices'[Net Secondary Amt - Invoiced])) but it displays the wrong result. There is no way the values are the same.

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

Hello @Anonymous 

Give this a try.  It assumes that the measure is called [Net Invoice Amt].

COUNTX ( VALUES ( 'Store Invoice'[Store ID] ), [Net Invoice Amt] )

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

Hello @Anonymous 

Give this a try.  It assumes that the measure is called [Net Invoice Amt].

COUNTX ( VALUES ( 'Store Invoice'[Store ID] ), [Net Invoice Amt] )
Anonymous
Not applicable

Woah!! That actually worked! Thank you so much.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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