I'm facing issues when i try to make an IF statement in a measure, using measures.
I did some research myself but can't find the proper solution for my problem.
I created a table with project information. Using measures to calculate totals within columns. Next i want to create a measure with IF statement, that is using previous measures.
When i try to add the new measure it's showing extremely lots of rows that i don't want to see.
I think it's a common thing but i don't know the answer.
I've created this measure:
OHW op aanneemsom = IF(
Measure_Facturatie[Mijlpalen gefactureerd] >= Measure_OHW[Aanneemsom],
Measure_Algemeen[Totaal realisatie] < Measure_OHW[Aanneemsom],
Measure_Algemeen[Totaal realisatie] - Measure_Facturatie[Mijlpalen gefactureerd],
Measure_Algemeen[Totaal realisatie] >= Measure_OHW[Aanneemsom],
Measure_OHW[Aanneemsom] - Measure_Facturatie[Mijlpalen gefactureerd],
Each measure i use, is also being used in my table. Values are calculated correctly.
And this is the table i created (each line, is a project):
After i add the new measure, this is the result:
I hope you can show my in the right direction.