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'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.
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.
User | Count |
---|---|
13 | |
12 | |
10 | |
7 | |
7 |
User | Count |
---|---|
18 | |
14 | |
11 | |
11 | |
10 |