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! Learn more
I'm trying to visualize the total revenue per week, include the weeks with no revenue. For this purpose I tried to use
But as you can see this visual is without the null weeks.
Therefore I tried it with the following DAX
How can I make a combination of both with the blue line and the first visualisation.
For the blue line I use the following dax
Solved! Go to Solution.
Hi @Dickkieee ,
To ensure that weeks with no revenue are included in your visual, you need to make sure that your date table (DimDate) has a continuous range of dates and that it is not filtered out by the relationships or the context of the report. Here's a revised version of your DAX measure that should help:
Total Revenue with Empty Weeks =
CALCULATE (
SUM ( 'fct_test'[revenue] ),
ALL ( 'DimDate' ),
// This removes any filters from the DimDate table
VALUES ( 'DimDate'[WeekNumber] ) // This ensures that you still group by week
)
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Dickkieee ,
To ensure that weeks with no revenue are included in your visual, you need to make sure that your date table (DimDate) has a continuous range of dates and that it is not filtered out by the relationships or the context of the report. Here's a revised version of your DAX measure that should help:
Total Revenue with Empty Weeks =
CALCULATE (
SUM ( 'fct_test'[revenue] ),
ALL ( 'DimDate' ),
// This removes any filters from the DimDate table
VALUES ( 'DimDate'[WeekNumber] ) // This ensures that you still group by week
)
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 23 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |