Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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] )
)
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] )
)
User | Count |
---|---|
25 | |
11 | |
7 | |
6 | |
6 |
User | Count |
---|---|
30 | |
13 | |
11 | |
9 | |
6 |