The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
I have a datasource like this:
I need to have a table like this
I need to have a parameter to choose if I want to see only actual or aactual+prevision1 or actual+prevision 2 or actual+prevision 3 based on what I choose on parameter, how can I do?
thanks
Solved! Go to Solution.
Hi @Giada90 ,
@Ritaf1983 , thanks for your concern about this case.
I made an attempt based on the user's requirement and implemented the result. Please check if there is anything that can be improved. Here is my solution:
1. Using the original data:
2. Create four measures which meet your requirements:
actual = SUM('Table'[actual])
Actual+Prevision1 = SUM('Table'[actual]) + SUM('Table'[prevision 1])
Actual+Prevision2 = SUM('Table'[actual]) + SUM('Table'[prevision 2])
Actual+Prevision3 = SUM('Table'[actual]) + SUM('Table'[prevision 3])
3. Create field parameters:
4. Using parameters as values for the matrix.
5.The result is as follows:
Best Regards,
Zhu
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Hi @Giada90 ,
@Ritaf1983 , thanks for your concern about this case.
I made an attempt based on the user's requirement and implemented the result. Please check if there is anything that can be improved. Here is my solution:
1. Using the original data:
2. Create four measures which meet your requirements:
actual = SUM('Table'[actual])
Actual+Prevision1 = SUM('Table'[actual]) + SUM('Table'[prevision 1])
Actual+Prevision2 = SUM('Table'[actual]) + SUM('Table'[prevision 2])
Actual+Prevision3 = SUM('Table'[actual]) + SUM('Table'[prevision 3])
3. Create field parameters:
4. Using parameters as values for the matrix.
5.The result is as follows:
Best Regards,
Zhu
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
thanks!
@Ritaf1983 thanks but my case is different, I need to make a sum between measures, how can I do?
Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
person | type | actual | prevision |
a | sales | 5 | 3 |
a | cost | 7 | 4 |
what I need to do with parameter and dax (not pivot)
person | sales | |
a | 5 (or 5+3 it depends from parameter |
Hi
This is a classic scenario for field parameters.
Please refer to the linked video:
https://www.youtube.com/watch?v=V6WchPDZibI&t=4s
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
77 | |
73 | |
47 | |
39 |
User | Count |
---|---|
137 | |
108 | |
69 | |
64 | |
56 |