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
I am trying to create a slicer that can select which increase in percentage (or just the base value) is represented in all visuals/cards for a single page. They need to be categorized by Order ID in order for me to filter by other field (such as business sector, date of order, etc.).
I know how to do this in Excel, but I want the page to be replicable by someone else once I transfer out of the department, so having a DAX code they could copy and paste when they refresh the dashboard is really what I'm after here.
An example of the data I currently am working with is below:
Order ID | Base Value | 2% | 3% | 5% |
1 | 100 | 102 | 103 | 105 |
2 | 300 | 306 | 309 | 315 |
3 | 150 | 153 | 154.5 | 157.5 |
4 | 200 | 204 | 206 | 210 |
Any advice would be extremely helpful, and deeply appreciated.
Thanks in advance,
jjck
Solved! Go to Solution.
Hi, @jjck
Pick ID and Base value in PowerQuery, then select Unpivot Other Columns.
Select Apply. Then create a new column, use the following dax:
CombinedColumn = COMBINEVALUES ( "|", 'Table'[Order ID], 'Table'[Attribute] )
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @jjck
Pick ID and Base value in PowerQuery, then select Unpivot Other Columns.
Select Apply. Then create a new column, use the following dax:
CombinedColumn = COMBINEVALUES ( "|", 'Table'[Order ID], 'Table'[Attribute] )
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I am not a Power BI expert, but my gut tells me you are going about this the wrong way using a bunch of calculated columns. In my opinion, a more robust solution would be to create a separate table with the various percentage increases. You can load this easily into a slicer and then create measures for your visuals using SELECTEDVALUE. This also offers the added benefit of adding more increases easily (e.g. 2.5%, 7%, etc.) versus having to expand out the number of calculated columns in your Orders table. My 2 cents.
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 June 2024 Power BI update to learn about new features.
User | Count |
---|---|
39 | |
33 | |
26 | |
19 | |
19 |
User | Count |
---|---|
60 | |
53 | |
34 | |
33 | |
31 |