Forum Discussion
row context conditional
4 Replies
- bcdobbsCommunity Champion
Hi,
Are you able to provide a demo pbix file and an idea of the final result you're after.From your description I think you might want a calculated column rather than a measure. The measure you give doesn't have an iterator in it so has no concept of a row. Hoping can help more with a demo file!
- ValtteriNCommunity Champion
Hi,
I am not sure if I understood correctly, but basically you want to calculate your values if their "type" is 1 and they have been created within the past 10 days?
Test data:
Excpected result is 2Dax:
TypeCount =CALCULATE(COUNTROWS(TypeCount),TypeCount[Type]=1,DATESBETWEEN(TypeCount[Date],TODAY()-10,TODAY()))
End result:
I am not sure if I understood what you are trying to do, but I hope this helps and if it does consider accepting this as a solution and giving the post a thumbs up! - v-jingzhangCommunity Support
Hi Dgpte
Is this what you want?
Measure = var vDate = IF(SELECTEDVALUE(Table1[Type])="1",SELECTEDVALUE(Table1[Date])+10,BLANK()) return vDateBest Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.