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.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
18 | |
15 | |
12 | |
11 | |
8 |
User | Count |
---|---|
24 | |
18 | |
12 | |
11 | |
10 |