Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi Folks,
My requirement is to sum all child value under slicer filter parrent id seperate by other column eg. sex, position. My DAX code is correct when show in card visual but when show in metrix visual with other columns. It show only column value eg. Male with relate to filter's id. Could you have any suggestion?
DAX
sum value =
Sex | Sum Value |
Male | 18 |
Total | 126 |
Output that I Want
Sex | Sum Value |
Male | 18 |
Female | 108 |
Total | 126 |
Thank you,
Now I'm already finish this requirement by create another distinct ID table and use this table as a slicer.
Here is my measure
sum value =
Sorry to reply late already test this measure but it's return the same result don't have output for female
and in edit interaction regard to selectvalue for slicer and ignore interaction the output return blank
Could you have other solution?
Thank you,
Hi @eakeekkk
Your measure is comparing 'Member'[Path] with the current member's id. Is a member possible to have both Male data and Female data in the data table? Can you provide some fake data to show the table structure and the expected output based on that data?
Regards,
Jing
It seem matrix visual is filtered by filter's id of parrent is there anyway to disable filter in row or column of visual
Hi @eakeekkk
Try this measure
sum value =
VAR CurrentEmployeeID =
SELECTEDVALUE ( 'Member'[ID] )
RETURN
CALCULATE (
SUM ( 'Member'[Value] ),
ALL ( 'Member'[ID], 'Member'[Path] ),
PATHCONTAINS ( 'Member'[Path], CurrentEmployeeID )
)
Or if you don't want the slicer to filter the matrix visual, you can select the slicer, go to Format > Edit interactions. Disable the slicer from filtering the matrix visual. Reference: Change how visuals interact in a Power BI report
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
User | Count |
---|---|
101 | |
90 | |
78 | |
70 | |
69 |
User | Count |
---|---|
110 | |
96 | |
95 | |
74 | |
71 |