The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi,
I have a DIM_TABLE with groups and subgroups of keys
DIM_TABLE:
and a FACT_TABLE with transactions values
FACT_TABLE:
I want to perform calculation in fact table based in KEY_GROUP
CALCULATION_A = KEY_GROUP 1 + KEY_GROUP 3
CALCULATION_A = 10+5+2 = 17
there's some easy way to do this?
Solved! Go to Solution.
You may refer to measure below.
Measure = SUMX ( FILTER ( FACT_TABLE, LOOKUPVALUE ( DIM_TABLE[KEY_GROUP], DIM_TABLE[KEY_SUBGROUP], FACT_TABLE[KEY_SUBGROUP] ) IN { 1, 3 } ), FACT_TABLE[VALUE] )
You may refer to measure below.
Measure = SUMX ( FILTER ( FACT_TABLE, LOOKUPVALUE ( DIM_TABLE[KEY_GROUP], DIM_TABLE[KEY_SUBGROUP], FACT_TABLE[KEY_SUBGROUP] ) IN { 1, 3 } ), FACT_TABLE[VALUE] )
Thank you!
User | Count |
---|---|
69 | |
69 | |
66 | |
54 | |
28 |
User | Count |
---|---|
112 | |
82 | |
66 | |
48 | |
43 |