Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
72 | |
62 | |
51 | |
48 |
User | Count |
---|---|
206 | |
90 | |
61 | |
59 | |
57 |