Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I assume the measure that is in the visualization is an average-measure.
Please check the below picture and the attached pbix file.
I tried to create a sample pbix file like below.
I hope the below can provide some ideas on how to create a solution for your datamodel.
Expected result measure: =
SWITCH (
TRUE (),
NOT ISFILTERED ( Category[Category] ) && ISFILTERED ( 'Product'[Product] ), AVERAGE ( Data[Value] ),
ISFILTERED ( Category[Category] ) && ISFILTERED ( 'Product'[Product] ), AVERAGE ( Data[Value] ),
SUM ( Data[Value] )
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
I assume the measure that is in the visualization is an average-measure.
Please check the below picture and the attached pbix file.
I tried to create a sample pbix file like below.
I hope the below can provide some ideas on how to create a solution for your datamodel.
Expected result measure: =
SWITCH (
TRUE (),
NOT ISFILTERED ( Category[Category] ) && ISFILTERED ( 'Product'[Product] ), AVERAGE ( Data[Value] ),
ISFILTERED ( Category[Category] ) && ISFILTERED ( 'Product'[Product] ), AVERAGE ( Data[Value] ),
SUM ( Data[Value] )
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
User | Count |
---|---|
54 | |
22 | |
18 | |
16 | |
11 |
User | Count |
---|---|
80 | |
57 | |
40 | |
19 | |
10 |