Forum Discussion
Lookupvalue combined with switch function
Hi,
I created 2 dummy tables to explain my question. I would like to have a slicer with values from 'Table1'[Subscriptiontype] (Values are Yearly and Monthly)
Output of measure should be the sum of all prices related to the products
Table1
Table2
I used a LOOKUPVALUE expression but ofcourse that will give an error that multiple values are found because I have all products both on a yearly and monthly expression.
Would be grateful for the solution:)
Kind Regards,
Soof1234
Hi Soof1234 ,
You can achieve this by using sum of Price per month dircetly:
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 Reply
- v-jianboli-msft
Community Support
Hi Soof1234 ,
You can achieve this by using sum of Price per month dircetly:
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.