The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I am trying to build a matrix table and tried to build a calculated column for segmentation, but what do I build if I need to see something as its own row essentially double counting? In the table below, Junior exists in both Corporate and Plant, but I would like to see it as its own row in the same matrix table.
Lets say I have data in a table like this:
But when I build out my matrix table I need this:
Solved! Go to Solution.
Hi,
I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
USERELATIONSHIP function (DAX) - DAX | Microsoft Learn
expected result measure: =
SWITCH (
SELECTEDVALUE ( agency[agency] ),
"junior",
CALCULATE (
SUM ( data[revenue] ),
USERELATIONSHIP ( agency[agency], data[department] )
),
SUM ( data[revenue] )
)
Thank you
Hi,
I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
USERELATIONSHIP function (DAX) - DAX | Microsoft Learn
expected result measure: =
SWITCH (
SELECTEDVALUE ( agency[agency] ),
"junior",
CALCULATE (
SUM ( data[revenue] ),
USERELATIONSHIP ( agency[agency], data[department] )
),
SUM ( data[revenue] )
)
User | Count |
---|---|
20 | |
8 | |
7 | |
7 | |
6 |
User | Count |
---|---|
28 | |
12 | |
11 | |
9 | |
8 |