Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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.