Forum Discussion
MikeHendriks
Helper I
2 years agoMeasure based on dividing on types
Hi all, I have a PBIX file with a fact table with numbers in it. These are linked to dimensions like costcenter. But now I have an issue with my measure on total level because I have a specia...
- 2 years ago
or try this
Ahmedx
Super User
2 years agoI can’t help you, you better get a new version on your personal computer and see my solution
MikeHendriks
Helper I
2 years agoI have downloaded your file Ahmedx. It works I think, but
SWITCH(TRUE(),
MAX('Costcenter'[Type])="XXO"&&MAX('Costcenter'[SubType])="VXO",0,[Capacity 2 measure])
Gives issues in a case where VXO is present, but NXO is not.
- Ahmedx2 years ago
Super User
in such a case what should we do?
- MikeHendriks2 years ago
Helper I
If VXO = 80 and NXO is not present -> 80
If VXO is not present and NXO = 80 -> 80
If VXO = 80 and NXO = 80 -> 80- Ahmedx2 years ago
Super User
try