Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello!
I've looked around but not finding a solution that works for my situation.
I am trying to add a row into a matrix that has a static value for a specific column. Below is the current statement I have created; however, I am getting an error on the 'Awards'[Sender's Sr Business Unit] section, and not sure what I need to do.
| Sr Business Unit | Total Emp Count |
| A | [count] |
| B | [count] |
| C | [count] |
| xSystem Generated | 1 |
Solved! Go to Solution.
Add selectedvalue()
IF( selectedvalue('Awards'[Sender's Sr Business Unit] ) = "xSystem Generated",
Well that did help get it to stop erroring; however, I'm still having an issue getting to actually add that row to my matrix.
Edit: I might have figured it out. Hopefully 🙂
Completely agree with @Deku. You are getting the error because currently you are referencing the entire column of values of the 'Awards'[Sender's Sr Business) Unit] column. Adding SelectedValue() around the column gives you a single value to evaluate in the statement within the filter context. This has happened to me so many times 🙂
Add selectedvalue()
IF( selectedvalue('Awards'[Sender's Sr Business Unit] ) = "xSystem Generated",
Just a Parenthses in the wrong spot. It should read like this
IF(SELECTEDVALUE('Awards'[Sender's Sr Business Unit]) = "xSystem Generated", SysGen, EmpCount - [Total Mgr Count] )
The = "xSystemGenerate" should be outside of the selectedvalue brackets
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 |
|---|---|
| 52 | |
| 38 | |
| 37 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 65 | |
| 39 | |
| 33 | |
| 23 |