Forum Discussion
NadiaLR1234
Helper I
1 year agoMeasure with multiple conditions
Good day I have the following measures DT_RevenueSCG = IFERROR([TargetDayRevenueSCG],0) DailyTargetRevenueSCG = MAX(TTVBudget[DT_RevenueSCG])*Max(vw_TTV_REN[MaxDate2]) TargetDayRevenueSCG ...
- 1 year ago
I managed to get it to work without the date divide
thank you
TargetDayRevenueSCG =VAR SCG = SELECTEDVALUE(vw_TTV_REN[SalesChannelDescGroup])VAR Revenue =SWITCH(SCG,"Leisure", SUM(TTVBudget[LeisureRevenue]),"MICE/Logistics", SUM(TTVBudget[MiceRevenue]),"Transient", SUM(TTVBudget[TransientRevenue]),"Traveller Enablement", SUM(TTVBudget[TERevenue]),0)RETURNRevenue
Anonymous
1 year agoNot applicable
Hi burakkaragoz,
Thanks for reaching out.
Unfortunately, I can't receive files through email. But if you'd like, you can upload your pbix file here directly, and I’ll take a look. It might be an issue with the joins, so I’ll check the relationships and anything else that could be causing the problem.
Looking forward to helping you sort it out.
NadiaLR1234
Helper I
1 year agoUnfortunately I can not add it on a public platform due to the confidentialy of the data - I will just play around with the table joins
Thank you
- NadiaLR12341 year ago
Helper I
I managed to get it to work without the date divide
thank you
TargetDayRevenueSCG =VAR SCG = SELECTEDVALUE(vw_TTV_REN[SalesChannelDescGroup])VAR Revenue =SWITCH(SCG,"Leisure", SUM(TTVBudget[LeisureRevenue]),"MICE/Logistics", SUM(TTVBudget[MiceRevenue]),"Transient", SUM(TTVBudget[TransientRevenue]),"Traveller Enablement", SUM(TTVBudget[TERevenue]),0)RETURNRevenue