March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
21 | |
14 | |
11 | |
8 | |
5 |
User | Count |
---|---|
26 | |
21 | |
20 | |
14 | |
10 |