Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi,
I've two measures Sales and Profit, but I want to create a dynamic parameter for sales and profit, how can I do it?
Regards,
Akhilesh Gupta
Solved! Go to Solution.
Measure =
var selecteditem = MAX(Slicer[Slicer])
return if(selecteditem="Sales",MAX(Sales[Sales]),MAX(Sales[Sales])-MAX(Sales[Cost]))
change MAX to SUM
Measure =
var selecteditem = MAX(Slicer[Slicer])
return if(selecteditem="Sales",SUM(Sales[Sales]),SUM(Sales[Sales])-SUM(Sales[Cost]))
Regards,
Charlie Liao
I have tested it on my local environemnt, the steps below are for you reference.
Regards,
Chalrie Liao
Hello Chalrie Liao,
I used the logic several times, which I got from you, but not working and showing the below error in screenshot.....
Please suggest and how can do it.
Regards,
Akhilesh Gupta
Hello Charlie Liao,
Thanks for the quick response.
The grand total is not matching for Profit and Sales, which I got the solution from you.
Regards,
Akhilesh Gupta
Measure =
var selecteditem = MAX(Slicer[Slicer])
return if(selecteditem="Sales",MAX(Sales[Sales]),MAX(Sales[Sales])-MAX(Sales[Cost]))
change MAX to SUM
Measure =
var selecteditem = MAX(Slicer[Slicer])
return if(selecteditem="Sales",SUM(Sales[Sales]),SUM(Sales[Sales])-SUM(Sales[Cost]))
Regards,
Charlie Liao