Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
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
Solved! Go to Solution.
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:
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.
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.
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:
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.
Appreciate the reply and help. But, I want the count of unique "Workflow ID" for who's delay days is less than 7 days.
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.
@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.
Delay Days is a Column.
I tried CALCULATE([Total Open Invoices],filter( 'Invoicing WF Details', 'Invoicing WF Details'[DELAY (DAYS)] <= 7)) as well.
Shows up like this
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 79 | |
| 38 | |
| 31 | |
| 27 | |
| 27 |