The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I am new to Power BI and need some help please. I have a column that contains data below. I want to create a table that will include only values for "y".
When I pull Column A into the Value field it counts both Y and N. How can I make it count only Y? Thank you.
Solved! Go to Solution.
Hi @KK111 ,
You can apply a visual-level filter on your visual: select the visual and apply the filter condition (Column A is "Y") in Filters pane just as suggested by @lbendlin . Please find more details about adding a filter to a report in the following documentation.
Add a filter to a report in Power BI
Besides that, you can create a slicer using the field Column A and create a measure as below to get the count of Column A which the value is "Y". Please find the details in the attachment.
Count of Y = CALCULATE(COUNT('Table'[Column A]),'Table'[Column A]=SELECTEDVALUE('Table'[Column A]))
Best Regards
Hi @KK111 ,
You can apply a visual-level filter on your visual: select the visual and apply the filter condition (Column A is "Y") in Filters pane just as suggested by @lbendlin . Please find more details about adding a filter to a report in the following documentation.
Add a filter to a report in Power BI
Besides that, you can create a slicer using the field Column A and create a measure as below to get the count of Column A which the value is "Y". Please find the details in the attachment.
Count of Y = CALCULATE(COUNT('Table'[Column A]),'Table'[Column A]=SELECTEDVALUE('Table'[Column A]))
Best Regards
Look in the Filter Pane, "Filters on this Visual", find Column A, set its filter to "Y".
User | Count |
---|---|
5 | |
5 | |
2 | |
2 | |
2 |
User | Count |
---|---|
10 | |
7 | |
4 | |
4 | |
4 |