Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi Guys,
I know there ar emany simialr topics, but still cnanot solve it for my model.
I have a table with few columns - one is Due Date (date format from past year up to years in the future ) and one column Critical - with 1 or 0. I want to create a measure to :
calluclate the number of the Critical rows (=1) for the oeriod up to whateevr months (for exampel up to 2 months ).
I tired Calculate , or/and Filters, coutnrows, SUM etc, but with not good success . For example :
Solved! Go to Solution.
Hi @kmilarov ,
Your calculation should work with one minor change.
Instead of using 'Forecast_DB'[Due Date], you'll need use a date table.
Here are the steps I tried:
1. Follow 'Generate with Dax' instructions here
Create date tables in Power BI Desktop - Power BI | Microsoft Learn
I named by date table 'Dim_Date'
2. Join 'Forecast_DB'[Due Date] to 'Dim_Date'[Date]
3. Modify CRITs DAX to use Dim_Date
Hope this helps.
Thanks,
KhaiT
Hi @kmilarov ,
Your calculation should work with one minor change.
Instead of using 'Forecast_DB'[Due Date], you'll need use a date table.
Here are the steps I tried:
1. Follow 'Generate with Dax' instructions here
Create date tables in Power BI Desktop - Power BI | Microsoft Learn
I named by date table 'Dim_Date'
2. Join 'Forecast_DB'[Due Date] to 'Dim_Date'[Date]
3. Modify CRITs DAX to use Dim_Date
Hope this helps.
Thanks,
KhaiT
Thanks , KhaiT. Your suggestion works very well.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!