Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
The first Step I calculate How many order has every user in the year.
Te idea here is if the user has one order or more in a month I will count as 1. Means if the user has order all the month , the resut will be 12.
This is the formula :
Solved! Go to Solution.
Hi, @OmarSek75
Since you used ALL, all filters are cleared. This will take the maximum value in the UniqueMonths column of the summarize virtual table. If you want to keep the year filter, you should change your DAX to:
Number Declaration Conditional formating =
var MaxMonthsPerYear =
CALCULATE(
MAXX(
SUMMARIZE(
ALLEXCEPT ('ft_qualityesod','DateTable'[Year]),
'DateTable'[Year],
'ft_qualityesod'[user_email],
"UniqueMonths", [UniqueMonthsPerYear]
),
[UniqueMonths]
)
)
RETURN MaxMonthsPerYear
AllEXCEPT retains the year filter so that the maximum value for each year is correctly calculated.
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @OmarSek75
Since you used ALL, all filters are cleared. This will take the maximum value in the UniqueMonths column of the summarize virtual table. If you want to keep the year filter, you should change your DAX to:
Number Declaration Conditional formating =
var MaxMonthsPerYear =
CALCULATE(
MAXX(
SUMMARIZE(
ALLEXCEPT ('ft_qualityesod','DateTable'[Year]),
'DateTable'[Year],
'ft_qualityesod'[user_email],
"UniqueMonths", [UniqueMonthsPerYear]
),
[UniqueMonths]
)
)
RETURN MaxMonthsPerYear
AllEXCEPT retains the year filter so that the maximum value for each year is correctly calculated.
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.