Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
FIrst time that I am trying to use DAX to modify a visual in PowerBI. I have a table with some text values that I want to display in a matrix, but i also want to show totals (counts) both by column and by row. I have written the following DAX, which gives me the text in the values of the matrix and totals (counts) by column, but I am still getting a list of text in the totals for rows. Could someone please help me to correct it? Thank you!
My DAX for my measure:
My data:
OrderedStage
1 – First Stage
2 – Second Stage
3 – Third Stage
4 – Final Stage
PRODNumber
ABC123
XYX456
CDE321
The current result:
My desired result:
Thanks,
crawlejg
Solved! Go to Solution.
@crawlejg
Sorry I did not notice the the row totals. Please try
ISINSCOPE ( 'Table'[Group] ) && ISINSCOPE ( 'Table'[OrderedStage] )
Thank you tamerj1,
I updated to ISINSCOPE ( 'Table'[Group] ) and it gave me counts at the bottom, but now the totals on the right are the concatenated text instead of counts. How can I get both totals to be numbers?
@crawlejg
Sorry I did not notice the the row totals. Please try
ISINSCOPE ( 'Table'[Group] ) && ISINSCOPE ( 'Table'[OrderedStage] )
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
12 | |
10 | |
6 |