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.
I have data that looks like this. I would like a column table that shows the percent of each month including the month between.
PeakPct | TierStartDate | TierEndDate |
100% | Sep 21 | Sep 22 |
100% | Oct 22 | May 23 |
50% | Jun 23 | Dec 23 |
50% | Jun 23 | May 24 |
25% | Jan 24 | May 24 |
75% | Jun 24 | Dec 24 |
25% | Jan 24 | Dec 24 |
50% | Jan 25 | Dec 25 |
25% | Jan 25 | Dec 25 |
25% | Jan 25 | Dec 25 |
Here is the code I have so far but it only shows the sum of percent for the month for certain months and not all months.
For instance Jan 24 should be the sum of 25% (Jan 24 - May 24), 25% (Jan 24 - Dec 24), and 50% (June 23 - May 24) totalling 100%.
Solved! Go to Solution.
To report on things that are not there you need to use disconnected tables and/or crossjoins. That includes a calendar table that needs to cover the entire period.
First, bring your data into a usable form
Then add the calendar, for example via
Dates = ADDCOLUMNS(CALENDAR("2021-09-01","2025-12-31"),"Year",FORMAT([Date],"yyyy"),"Month",FORMAT([Date],"mmm"),"MNo",FORMAT([Date],"mm"))
And then add a measure that checks if the date on the calendar overlaps with the date range in the percentage table.
To report on things that are not there you need to use disconnected tables and/or crossjoins. That includes a calendar table that needs to cover the entire period.
First, bring your data into a usable form
Then add the calendar, for example via
Dates = ADDCOLUMNS(CALENDAR("2021-09-01","2025-12-31"),"Year",FORMAT([Date],"yyyy"),"Month",FORMAT([Date],"mmm"),"MNo",FORMAT([Date],"mm"))
And then add a measure that checks if the date on the calendar overlaps with the date range in the percentage table.
This is beautiful! Thank you!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.