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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Calculate Measure not working for one but working for rest.

 

This is the code for
Measure for 1 WEEK "Upto 1 Week = CALCULATE([Total Open Invoices], 'Invoicing WF Details'[DELAY (DAYS)] <= 7)" NOT WORKING

Measure for 2 WEEK "Upto 2 Weeks = CALCULATE([Total Open Invoices], 'Invoicing WF Details'[DELAY (DAYS)]>7, 'Invoicing WF Details'[DELAY (DAYS)]<=14)" Working!!
Measure for delay above 3 months "
Delay Over 3 Months = CALCULATE([Total Open Invoices],'Invoicing WF Details'[DELAY (DAYS)] >= 120)" Working

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi,@Anonymous 

According to the sample you provided, we found that there are blank values in it, which may be the reason why your Measure for 1 WEEK "Upto 1 Week does not work.

 

You can create a new measure to solve it:

 

 

Measure = CALCULATE(COUNT('Invoicing WF Details'[Delay(Days)]),FILTER(ALL('Invoicing WF Details'),'Invoicing WF Details'[Delay(Days)]<=7&& ISNUMBER('Invoicing WF Details'[Delay(Days)])))

 

 

Then you can meet your needs like this

 

 Sample for case.png

 

Here is the demo, please try it: https://qiuyunus-my.sharepoint.com/:u:/g/personal/admin_qiuyunus_onmicrosoft_com/EWth-UGf5btJpzrHsSszeawBe_A7e3DyxT6zBN7QHffjwQ?e=QujukE

 

Hope it helps.

 

Best Regards,

Caitlyn Yan

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Anonymous
Not applicable

Hi, @Anonymous 

please try the measure below to see the count of unique "Workflow ID" for who's delay days is less than 7 days.

 

Measure  = 
VAR _table=CALCULATETABLE(VALUES('Invoicing WF Details'[Workflow ID]),FILTER(ALL('Invoicing WF Details'),'Invoicing WF Details'[Delay(Days)]<7&& ISNUMBER('Invoicing WF Details'[Delay(Days)])))
Return
COUNTROWS(_table)

 

Hope it helps.

 

Best Regards,

Caitlyn Yan

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Hi,@Anonymous 

According to the sample you provided, we found that there are blank values in it, which may be the reason why your Measure for 1 WEEK "Upto 1 Week does not work.

 

You can create a new measure to solve it:

 

 

Measure = CALCULATE(COUNT('Invoicing WF Details'[Delay(Days)]),FILTER(ALL('Invoicing WF Details'),'Invoicing WF Details'[Delay(Days)]<=7&& ISNUMBER('Invoicing WF Details'[Delay(Days)])))

 

 

Then you can meet your needs like this

 

 Sample for case.png

 

Here is the demo, please try it: https://qiuyunus-my.sharepoint.com/:u:/g/personal/admin_qiuyunus_onmicrosoft_com/EWth-UGf5btJpzrHsSszeawBe_A7e3DyxT6zBN7QHffjwQ?e=QujukE

 

Hope it helps.

 

Best Regards,

Caitlyn Yan

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Appreciate the reply and help. But, I want the count of unique "Workflow ID" for who's delay days is less than 7 days.

Anonymous
Not applicable

Hi, @Anonymous 

please try the measure below to see the count of unique "Workflow ID" for who's delay days is less than 7 days.

 

Measure  = 
VAR _table=CALCULATETABLE(VALUES('Invoicing WF Details'[Workflow ID]),FILTER(ALL('Invoicing WF Details'),'Invoicing WF Details'[Delay(Days)]<7&& ISNUMBER('Invoicing WF Details'[Delay(Days)])))
Return
COUNTROWS(_table)

 

Hope it helps.

 

Best Regards,

Caitlyn Yan

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , Is DELAY (DAYS) is a measure or column. 

Try like

CALCULATE([Total Open Invoices],filter( 'Invoicing WF Details', 'Invoicing WF Details'[DELAY (DAYS)] <= 7))

 

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Delay Days is a Column. 
I tried CALCULATE([Total Open Invoices],filter( 'Invoicing WF Details', 'Invoicing WF Details'[DELAY (DAYS)] <= 7)) as well.
Capture.PNG

Anonymous
Not applicable

Shows up like thisShows up like this

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.