The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
I need to make a report where the user can visualize the result of different parameters selection (on different slicers)
Here is a simple example :
I want to see on a graphic : y = ax^2 + bx + c.
I have 3 slicers : one to select a, one to select b and a last one to select c. How can I allow the user to select (1,1,1) and vizualiser the result on the graph and then keep this curve and add an other one with (2,2,2) ?
Solved! Go to Solution.
@Anonymous ,
Here you go:
For the left you have to create the disconnected (don't create a relationship to the other table with it) category table:
Respectfully,
Zoe Douglas (DataZoe)
Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/
@Anonymous ,
You should be able to do this by creating two measures based on the parameters for each measure:
I created a table with a the x values from -10 to 10.
Then created a parameter for a1, b1, c1 and a2, b2, c2.
then, I create the two formulas, y1 an y2 as measures:
Respectfully,
Zoe Douglas (DataZoe)
Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/
Your solution can works but seems really time consuming to setup it (when you have 10 slicers) and probably not really easy to use. It seems there isn't better solution in power bi ?
@Anonymous
for your specific scenarios, I think it could be done with one parameter and a duplicate disconnected table of product names. Then you would create the measures for each scenario listed.
For example:
Sales = sum([sales])
Sales Under Input = calculate([Sales],filter(SalesTable,averagex(SalesTable,sum(SalesTable[ProductPrice]))<Parameter[Input Value]))
Sales Over Input = calculate([Sales],filter(SalesTable,averagex(SalesTable,sum(SalesTable[ProductPrice]))>=Parameter[Input Value]))
then put all the measures on a single line chart.
for the specific categories, you could use SELECTEDVALUE to create the different measures based on the input.
I'll try to mock it up later.
Respectfully,
Zoe Douglas (DataZoe)
Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/
Yes maybe it can be a solution, I will wait your example to see exactly what you mean 🙂
@Anonymous ,
Here you go:
For the left you have to create the disconnected (don't create a relationship to the other table with it) category table:
Respectfully,
Zoe Douglas (DataZoe)
Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
2 or 3 curves
I took a simple example but this is not just numbers or coefficients. It's about textual parameter, number, etc...
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Yes but how can you vizualize 2 curves with different selections on the same graph ? (at the same time btw)
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Hi, Thanks for your answer but I dont think it solves my problem.
Here is an example more realistic :
I want to vizualize the sales volume on the last 12 months. Imagine you have the value (sales volume) and at least 2 slicers : pricing and category of items. The user wants on the same graphic :
Then maybe the user will want to vizualize :
How can I setup this kind of feature in a report ? I cant believe it's not possible in a software like power bi ?