Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
I need Product to caluclate Avg of the months when they have values in them. As so, Handheld should read .186 when I drill up instead it sums up everything to .93(Aka sum). But I need my YearMonth to sum the expense which it is doing correctly. I've seen the hasonevalue/filter & ifinscope within the community, but never could get it to work.
Solved! Go to Solution.
Hi @pk32 ,
You could use ISINSCOPE() or ISFILTERED() function.
create a new measure like below:
measure =
IF (
ISINSCOPE ( [hierarchy] ),
[value],
SUMX ( ALLEXCEPT ( 'table', [hierarchy] ), [value] )
)
It will return sum of row values at subtotal.
Best Regards,
Jay
Hi @pk32 ,
You could use ISINSCOPE() or ISFILTERED() function.
create a new measure like below:
measure =
IF (
ISINSCOPE ( [hierarchy] ),
[value],
SUMX ( ALLEXCEPT ( 'table', [hierarchy] ), [value] )
)
It will return sum of row values at subtotal.
Best Regards,
Jay
| User | Count |
|---|---|
| 50 | |
| 43 | |
| 36 | |
| 33 | |
| 29 |
| User | Count |
|---|---|
| 139 | |
| 129 | |
| 61 | |
| 59 | |
| 57 |