Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Looking for assistance creating a slicer for a set of data, but I'm not even sure it's possible. Below is my sample set.
I want my slicer to have two options: "Pipeline" and "Revenue". This slicer is intended to filter a stacked bar chart where X axis = Month, Y axis = Amount, Legend = Status.
The catch: all rows are Pipeline, but only rows with "Won" in the Status column are Revenue.
Initially, I created a new column:
I feel like I'm overlooking something super obvious (apologies in advance if that's the case). I understand that making Status a slicer would work, but that's not the direction we need to go. Anyone have thoughts on how to accomplish this?
Table
| Date | ID | Status | Amount |
| 1/14/2025 | 12172 | Lost | $24,833.12 |
| 1/21/2025 | 12173 | Lost | $2,174.00 |
| 2/1/2025 | 12174 | Won | $35,488.14 |
| 2/3/2025 | 12175 | In Process | $12,446.85 |
| 2/17/2025 | 12176 | Won | $24,688.10 |
| 2/22/2025 | 12177 | Won | $1,354.00 |
| 3/14/2025 | 12178 | In Process | $841.68 |
| 3/22/2025 | 12179 | Lost | $54,887.25 |
| 3/23/2025 | 12180 | In Process | $899.16 |
| 4/5/2025 | 12181 | In Process | $35,748.00 |
| 4/17/2025 | 12182 | Lost | $22,488.30 |
| 4/25/2025 | 12183 | Won | $5,168.00 |
| 5/1/2025 | 12184 | In Process | $4,721.10 |
| 5/12/2025 | 12185 | In Process | $31,864.57 |
| 5/20/2025 | 12186 | Won | $23,458.00 |
| 5/25/2025 | 12187 | Won | $2,435.45 |
For illustration purposes, here's the gist of what I'm looking for:
Solved! Go to Solution.
Hi @MuppetyMe ,
Create a disconnected table with the two values:
Pipeline
Revenue
Then add the following measures:
Total = SUM('Table'[ Amount ])
total Values =
SWITCH(
TRUE(),
SELECTEDVALUE('Type Selection'[Type]) = "Pipeline" , [Total],
SELECTEDVALUE('Table'[Status]) ="Won" && SELECTEDVALUE('Type Selection'[Type]) = "Revenue", CALCULATE([Total], 'Table'[Status] = "Won"))
See PBIX attached.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi,
PBI file attached.
Hope this helps.
Hi @MuppetyMe,
Thank you @Ashish_Mathur amd @MFelix for your response and for providing the attached file.
You may refer to the answers included, and I am also sharing the PBI xfile for your reference. Kindly review it at your convenience.
I hope this helps resolve your issue. If you have any questions or need further clarification, I’m happy to help.
If you found this post useful, kindly give it a ‘Kudos’ and mark it as a solution so others facing similar challenges can find it more easily.
Thanks for being part of the Microsoft Community!
Hi @MuppetyMe ,
Create a disconnected table with the two values:
Pipeline
Revenue
Then add the following measures:
Total = SUM('Table'[ Amount ])
total Values =
SWITCH(
TRUE(),
SELECTEDVALUE('Type Selection'[Type]) = "Pipeline" , [Total],
SELECTEDVALUE('Table'[Status]) ="Won" && SELECTEDVALUE('Type Selection'[Type]) = "Revenue", CALCULATE([Total], 'Table'[Status] = "Won"))
See PBIX attached.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThank you @MFelix and @Ashish_Mathur! Both of your suggestions (almost the same, but slightly different) solved my issue. Appreciate your time and help!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 40 | |
| 37 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 67 | |
| 34 | |
| 33 | |
| 30 |