misstoffeepenny
New Member
- Joined
- Jan 18, 2021
- Messages
- 19
- Office Version
- 365
- 2016
- 2011
- Platform
- Windows
Hi all, I'm trying to write a DAX for an IF function where there are multiple criteria and true answers but it keeps getting stuck and generating on 1 answer for all outcomes any help correcting it would be appreciated.
NB all my tables are linked in data relationships.
Below is what I have so far:
=IF (
MAX ( SiteInspections[count major] ) > 1, 0,
IF (
MAX ( SiteInspections[count major] ) <= 1, 5,
IF (
MAX ( SiteInspections[count minor] ) > 5, 5,
IF (
MAX ( SiteInspections[count minor] ) <= 5, 10,
IF (
MAX ( SiteInspections[count minor] ) < 1, 15,
IF (
MAX ( SiteInspections[count OFI] ) > 5, 15,
IF (
MAX ( SiteInspections[count OFI] ) <= 5, 20, BLANK()
)
)
)
)
)
)
)
this gives all answers as 5... please help
NB all my tables are linked in data relationships.
Below is what I have so far:
=IF (
MAX ( SiteInspections[count major] ) > 1, 0,
IF (
MAX ( SiteInspections[count major] ) <= 1, 5,
IF (
MAX ( SiteInspections[count minor] ) > 5, 5,
IF (
MAX ( SiteInspections[count minor] ) <= 5, 10,
IF (
MAX ( SiteInspections[count minor] ) < 1, 15,
IF (
MAX ( SiteInspections[count OFI] ) > 5, 15,
IF (
MAX ( SiteInspections[count OFI] ) <= 5, 20, BLANK()
)
)
)
)
)
)
)
this gives all answers as 5... please help