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
hello all,
is it possible to define filters for the rows of a matrix? for example i have following source:
As a value field in the matrix i take CALCULATE( SUM (VALUE)). For the row fields i want DBI with filters Pos2 = A and so on with different filters. Finally I will show DBI, A, E, S, B, C in the rows of a matrix in power bi.
thanks for ideas.
Solved! Go to Solution.
Hi, @Pikachu-Power
According to your description, I think you have to create another table chart to display value for X and Y, you can take a look at my method:
1ST1 = SUMX(FILTER('Table',[KST]=1&&[Layer]="lst"&&[Position5] in {"X","Y"} ),[Value])
PLAN1 = SUMX(FILTER('Table',[KST]=1&&[Layer]="Plan"&&[Position5] in {"X","Y"} ),[Value])
DELTA1STPLAN = [1ST1]-[PLAN1]
And you can get what you want.
You can download my test pbix file here
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Pikachu-Power
Yes, you can transform the data in the Power Query editor to get the data displayed in one Matrix. If you can solve your problem after transforming the data, would you like to share some experience or mark my reply as a solution so that others can learn from it too?
Thanks in advance!
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Pikachu-Power
According to your description, I think you have to create another table chart to display value for X and Y, you can take a look at my method:
1ST1 = SUMX(FILTER('Table',[KST]=1&&[Layer]="lst"&&[Position5] in {"X","Y"} ),[Value])
PLAN1 = SUMX(FILTER('Table',[KST]=1&&[Layer]="Plan"&&[Position5] in {"X","Y"} ),[Value])
DELTA1STPLAN = [1ST1]-[PLAN1]
And you can get what you want.
You can download my test pbix file here
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ok thanks but that was also possible with the solution of mparhi.
I think i have to change than the datasource via transformation. See no chance to have one matrix.
Hi, @Pikachu-Power
According to your picture of expected output, you can try my steps:
1ST = SUMX(FILTER('Table',[KST]=1&&[Layer]="lst"&&[Position4] in {"E","S"} ),[Value])
PLAN = SUMX(FILTER('Table',[KST]=1&&[Layer]="Plan"&&[Position4] in {"E","S"} ),[Value])
DELTA 1ST-PLAN = [1ST]-[PLAN]
And you can get what you want.
You can download my test pbix file here
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Robertq,
thank you for your feedback. but is it also possibile to go on with X, Y after E, S in the same column? Or do you have to start a new matrix?
With to many matrices I have gaps. would be nice if it would be possible to let the column header vanish.
IST = CALCULATE(SUM('Table'[Value]),'Table'[Layer]="1st")
2.Use the Position column as a filter for this visual from the Filter pane and select only E and S.
3.Create Matrix for other filters for the Position column similarly.
Good idea but i will have 20 rows... it will look strange at the end. And I have no place to use 10 matrices among themselves. And there is no possibility to hide the column titel (just to show one row) right? I think I need an onother solution.
Can you share some sample data and the expected result to have a clear understanding of your question?
You can save your files in OneDrive, Google Drive, or any other cloud sharing platforms and share the link here.
____________________________________
How to paste sample data with your question?
How to get your questions answered quickly?
_____________________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
hello fowmy,
sample data would be to complex and it is senstive data. i tried wo discribe in more detail:
What I want is to use different filters for rows and colums...
for rows E and S for example with KST = 1
for columns value with Layer = Ist or Plan
If i define one measure for E with all filters I have the problem to display the matrix I want... with Positions in rows. What would be the best approch for that?
Ok I realised that all filters can be used for the column measures at first. But how to show the positions in rows? The positions are in a hierarchie in the datasource but i want to show it in rows with no hierarchie.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
146 | |
97 | |
79 | |
69 |