We'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
Hi all!
I'm trying to replicate an Excel dashboard in Power BI. One of the issues I face is how to add two particular columns to my Matrix visual. In the below picture these columns are 2+ (sum of the values in columns 6 to 2) and INT.
I currently have the following in Power BI:
Snapshot 2018M12 2018M04
Group WL1 WL2 WL3 WL4 WL5 Total WL1 WL2 et cetera
Group 1 10 6 3 2 1 22 11 6
Group 2 34 20 8 3 0 65
My intention is to add a column combining WL2, WL3, WL4 and WL5 into WL2+. Right now, I've done this by adding a custom Excel file where I've marked these WL's as part of the WL2+ bucket, added this to the data model and made a connection.
However, as a consequence, it then shows only the WL1 and WL2+ columns. Where I'd ideally would like to keep the WL2 - WL5 a well and then show the WL2+ as a reference column.
Next to this, I'd also like to add a another column in between, showing a specific group part of the WL1 group (in the picture above the INT column). This is a group of people part of the WL1 group, but part of the "Interns" group in the "Employee Type" field.
Hope this all makes sense, as my mindset most likely is still extremely oriented on Excel.
Thanks for the support 🙂
Solved! Go to Solution.
Hi @Nipius '
I create a new table
Table 3 =
UNION (
SUMMARIZE (
Sheet4,
Sheet4[year/month],
Sheet4[group],
Sheet4[value],
Sheet4[w]
),
SELECTCOLUMNS (
SUMMARIZE (
ADDCOLUMNS (
Sheet4,
"number", VALUE ( RIGHT ( [w], 1 ) ),
"2+", CALCULATE (
SUM ( Sheet4[value] ),
FILTER (
ALLEXCEPT ( Sheet4, Sheet4[year/month], Sheet4[group] ),
VALUE ( RIGHT ( [w], 1 ) ) >= 2
)
),
"w+", "2+"
),
Sheet4[year/month],
Sheet4[group],
[2+],
[w+]
),
"year/month", [year/month],
"group", [group],
"value", [2+],
"w", [w+]
)
)
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Nipius '
I create a new table
Table 3 =
UNION (
SUMMARIZE (
Sheet4,
Sheet4[year/month],
Sheet4[group],
Sheet4[value],
Sheet4[w]
),
SELECTCOLUMNS (
SUMMARIZE (
ADDCOLUMNS (
Sheet4,
"number", VALUE ( RIGHT ( [w], 1 ) ),
"2+", CALCULATE (
SUM ( Sheet4[value] ),
FILTER (
ALLEXCEPT ( Sheet4, Sheet4[year/month], Sheet4[group] ),
VALUE ( RIGHT ( [w], 1 ) ) >= 2
)
),
"w+", "2+"
),
Sheet4[year/month],
Sheet4[group],
[2+],
[w+]
),
"year/month", [year/month],
"group", [group],
"value", [2+],
"w", [w+]
)
)
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Apologies for the delayed response! Really appreciate your suolution!
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 | |
| 38 | |
| 33 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 67 | |
| 63 | |
| 38 | |
| 34 | |
| 22 |