Forum Discussion
krichmond
3 years agoHelper IV
Need help debugging a date based DAX formula
I tried to populate dates into a field called "Media Due" using certain criteria using the DAX formula below and based on what I can see, there aren't any visible errors with the formula (at the bott...
- 3 years ago
Hi krichmond
Is [Media Due] a measure? If so, you may try adding MAX function to monthnumber and yearnumber in the formula. Just like below.
Media Due = SWITCH ( TRUE (), MAX ( mv_perfex[mediatype] ) = "Digital" && MAX ( dimstartdate[monthnumber] ) = 1 && MAX ( dimstartdate[Yearnumber] ) = 2023, "12/14/2022", BLANK () )Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
v-jingzhang
3 years agoCommunity Support
Hi krichmond
Is [Media Due] a measure? If so, you may try adding MAX function to monthnumber and yearnumber in the formula. Just like below.
Media Due =
SWITCH (
TRUE (),
MAX ( mv_perfex[mediatype] ) = "Digital" && MAX ( dimstartdate[monthnumber] ) = 1 && MAX ( dimstartdate[Yearnumber] ) = 2023, "12/14/2022",
BLANK ()
)
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.