Forum Discussion
Measure with multiple conditions
- 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
Hi NadiaLR1234,
The TargetDayRevenueSCG measure calculates daily target revenue based on the selected sales channel group. It picks the correct monthly revenue from the TTVBudget table and divides it by the number of days in the selected month using the DIM_DATE table. This way, the daily target updates automatically based on the selected channel and date.
Here’s the DAX measure I used:
Find attached .PBIX file for your reference.
If the response has addressed your query, please Accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you,
Tejaswi.
Hi
It is still not working can I perhaps send you my pbix file on email- could it be the joins ?
- v-tejrama1 year agoCommunity Support
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.
- NadiaLR12341 year agoHelper I
Unfortunately 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 agoHelper 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