Power Bi Formula Not Working

Excel Fox

New Member
Joined
Nov 18, 2020
Messages
9
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi

I Have columns in a table that all contain Y and want to sum them up and then divide both other Y columns.

So to be clear the equation would be Number of Y in Column a divided by number of Y in column C. I've tried Sum/ Calculate/ Counta but all are failing.

The aim is to then drop the calculation into a graph to attach a target line to it. I have also tried conditional columns but no success as they count the blanks as N which throughs the final figure out.

Open to any ideas.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
In Power BI the easiest way to get the count of something is using the COUNTROWS function on your data table. If you want to count the number of Ys in a column A try
Excel Formula:
COUNTROWS(FILTER(Table1,Table1[Column A]="Y"))
If you want to count the number of rows in a column that are not blank try something like:
Excel Formula:
COUNTROWS(FILTER(Table1,Table1[Column A]<>BLANK()))
Another way to get the count the nonblank rows would be using the COUNTAX formula:
Excel Formula:
COUNTAX(Table1,Table1[Column A])
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,714
Messages
6,174,044
Members
452,542
Latest member
Bricklin

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