Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. 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.
User | Count |
---|---|
17 | |
17 | |
15 | |
13 | |
12 |
User | Count |
---|---|
10 | |
8 | |
8 | |
7 | |
6 |