Forum Discussion
calculate weighted index
Hi flunte70,
Try to make two formulas one for Heigth and another for total Height that uses the previous one. If try to make it a full dax measure the context will have to be changed.
Regards,
Mfelix
Hi MFelix,
I have the flw:
?Height = CALCULATE ( [Actuals]; ALL ( Data[Nummer]; Data[SC specifikation] ) )
?Vægtet KAP OLD = DIVIDE ([KAP Index] * [Actuals]; CALCULATE ( [Actuals]; ALL ( Data[Nummer]; Data[SC specifikation] )))
?Vægtet KAP = IF ( HASONEVALUE ( Data[Nummer] ); [?Vægtet KAP OLD]; SUMX ( ALL ( Data[Nummer]; Data[SC specifikation] ); [?Vægtet KAP OLD] ) )
The ? before the name is to keap them in the top of my measures.
"?Height" is returning the Total for all rows which is ok when my "Kategori" filter is off.
I think that the problem with my filter is that it is in a different table as I thought I could enter it in the ALL formula.
"?Vægtet KAP OLD" is returning the weighted CAPS in all the rows but the total is wrong
"?Vægtet KAP" is returning the weighted CAPS in all the rows and the total is right - but not when I filter on "Kategori"?