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.
Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.
Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!
User | Count |
---|---|
204 | |
52 | |
43 | |
39 | |
39 |
User | Count |
---|---|
267 | |
210 | |
72 | |
71 | |
65 |