Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Team, @amitchandak sir,
question:
location | status | qualified | intial | NA | total sum of average |
offshore | average>>> | 15 | 20 | 9 | 44 |
a | 10 | 15 | 10 | ||
b | 20 | 25 | 8 |
please help me to get desired result
Solved! Go to Solution.
Hi @sajjadkhan253 ,
Based on your description, I have create a simple sample:
Apply the measure to a matrix visual:
Measure =
SWITCH (
TRUE (),
ISINSCOPE ( 'Table'[ID] ) && ISINSCOPE ( 'Table'[Status] ), SUM ( 'Table'[Value] ),
ISINSCOPE ( 'Table'[Status] ) && NOT ( ISINSCOPE ( 'Table'[ID] ) ), AVERAGE ( 'Table'[Value] ),
NOT ( HASONEVALUE ( 'Table'[Status] ) ) && NOT ( HASONEVALUE ( 'Table'[ID] ) ),
SUMX (
SUMMARIZE (
'Table',
'Table'[Status],
"Average",
CALCULATE (
AVERAGE ( 'Table'[Value] ),
FILTER ( 'Table', [Status] = EARLIER ( 'Table'[Status] ) )
)
),
[Average]
)
)
Change the name of Row and Column Subtotals:
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @sajjadkhan253 ,
Based on your description, I have create a simple sample:
Apply the measure to a matrix visual:
Measure =
SWITCH (
TRUE (),
ISINSCOPE ( 'Table'[ID] ) && ISINSCOPE ( 'Table'[Status] ), SUM ( 'Table'[Value] ),
ISINSCOPE ( 'Table'[Status] ) && NOT ( ISINSCOPE ( 'Table'[ID] ) ), AVERAGE ( 'Table'[Value] ),
NOT ( HASONEVALUE ( 'Table'[Status] ) ) && NOT ( HASONEVALUE ( 'Table'[ID] ) ),
SUMX (
SUMMARIZE (
'Table',
'Table'[Status],
"Average",
CALCULATE (
AVERAGE ( 'Table'[Value] ),
FILTER ( 'Table', [Status] = EARLIER ( 'Table'[Status] ) )
)
),
[Average]
)
)
Change the name of Row and Column Subtotals:
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |