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.
Dear community,
I'm having a hard time creating a measure that should do the following:
As an example I will use the following table:
Person | Location | Date | Success |
Person A | Location 1 | 2021-08-02 | 0 |
Person A | Location 2 | 2021-08-02 | 1 |
Person A | Location 3 | 2021-08-02 | 1 |
Person A | Location 3 | 2021-08-02 | 1 |
Person A | Location 3 | 2021-08-02 | 0 |
Person B | Location 4 | 2021-08-02 | 1 |
Person B | Location 4 | 2021-08-02 | 1 |
Person B | Location 5 | 2021-08-02 | 0 |
Person B | Location 5 | 2021-08-02 | 0 |
Person B | Location 6 | 2021-08-02 | 1 |
Person C | Location 7 | 2021-08-02 | 0 |
Person C | Location 7 | 2021-08-02 | 1 |
The measure should return the maximum value from the column "Success" grouped by Location and Date.
This means the following values should be user for Person A:
The average (in percent) of those 3 locations should be 66,67%.
My measure looks like this:
Average of Success per Person and Date =
AVERAGEX(
SUMMARIZE ( 'Fact', 'Fact'[Location], 'Fact'[Date] ),
CALCULATE(MAX('Fact'[Success])
))
When i use this measure within a table visual it shows the correct average per Person but the total is wrong.
The total should be 77,78% (Average of 66,67%, 66,67% and 100%). Unfortunately the visual shows a total of 71,43%.
Can anyone help?
Thanks in advance
Solved! Go to Solution.
Hi, @Anonymous
Try to add a new measure as below:
New_Average of Success per Person and Date =
AVERAGEX (
SUMMARIZE (
'Fact',
'Fact'[Person],
"Measure1", [Average of Success per Person and Date]
),
[Average of Success per Person and Date]
)
Best Regards,
Community Support Team _ Eason
@Anonymous , I think you need to use person in this , that is part of visual
AVERAGEX(
SUMMARIZE ( 'Fact', 'Fact'[person], 'Fact'[Date] ),
CALCULATE(MAX('Fact'[Success])
))
Hi @amitchandak , using the person in the measure leads to another wrong result
Hi, @Anonymous
Try to add a new measure as below:
New_Average of Success per Person and Date =
AVERAGEX (
SUMMARIZE (
'Fact',
'Fact'[Person],
"Measure1", [Average of Success per Person and Date]
),
[Average of Success per Person and Date]
)
Best Regards,
Community Support Team _ Eason
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
50 | |
38 | |
38 |
User | Count |
---|---|
195 | |
80 | |
70 | |
51 | |
42 |