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
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.
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 |
|---|---|
| 8 | |
| 5 | |
| 5 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 11 | |
| 11 | |
| 9 | |
| 8 |