Power BI - Group a measure by a column; which is static in created visualiastion

Jaspal1996

New Member
Joined
Jan 22, 2022
Messages
1
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hi,

A question for Power BI users.

Have tried searching for this question, but no luck; and I hope I can explain it properly.

I have data that contains a parent code, and a city, with Yes and No answers.

  • I have created one measure that gives the % of Yes to No.
  • I have created another measure that counts all cities that has a percentage above or equal x%, and another that counts all cities under y%.

However, these measures only works to what is displayed in the table visualisation, when I remove city, the measure output changes, i.e. I need the city in the table to display the correct measures. Ideally, I need to only group these by parent code, such as below. I have the table on the left

  • Measure 1 gives the % of all Yes over total (Yes + No)
  • Measure 2 indicates 1 when above >=98% and 0 when below
I am hoping to be able to group this into the right table, that is a count of 1 and 0 (of that Measure 2); grouped into Parent Code.

1642848106330.png



Hopefully I explained correctly and there is a simple solution! Thanks
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top