Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi all,
I got the following dax code:
Hi @MarcoW91,
You can add a variable to store the selection items, then you can add if statements in your expression to achieve parameterized calculations:
Future Forecast =
VAR selection =
VALUES ( DIM_SPGHierarchy[SPG] )
RETURN
SUMX (
'FC UnderRev',
'FC UnderRev'[COS URev_FC]
* (
1
+ IF ( "WirePercentage" IN selection, [WirePercentage] )
+ IF ( "WireRodPercentage" IN selection, [WireRodPercentage] )
+ IF ( "ProfilePercentage" IN selection, [ProfilePercentage] )
+ IF ( "PowderPercentage" IN selection, [PowderPercentage] )
)
)
Regards,
Xiaoxin Sheng
I want to apply this code only on the selected items from a filter
There's a DAX function for that - FILTERS(). Also read about VALUES() and ISFILTERED().
User | Count |
---|---|
66 | |
60 | |
47 | |
33 | |
32 |
User | Count |
---|---|
86 | |
75 | |
56 | |
50 | |
45 |