Forum Discussion

Sportily's avatar
Sportily
Frequent Visitor
3 years ago

COUNTIF based on Averages in displayed table

Hi TeamBI!

Thanks SOOO much for looking at my question.

 

I have a visual - its a table.

Each of the 7 columns in the visual table incldes a number between 0 -7. (Based on 7 columns in the dataverse table)

These numbers are set as Averages by the visual, drawing on the dataverse data.

Conditional formatting turns the Average green in the visual table if it is greater than or equal to 5.

The displayed averages numbers are altered based on a date filter slicer for the sheet.

 

So

As you change the dates in the filter slicer, the number of datapoints in the dataset changes and therefore the average being displayed in each of the boxes in the visual table changes.

 

What I want to do is count the number of numbers in each row that have gone green.

So if 5 of the averages being shown are green, then the answer is 5.

If the date slicer changes and the averages in the visual table change, and now only 3 are green, then this changes to 3.

 

I dont think this can be done in the data table, because the count is based on displayed averages which change when the date filter is applied.

 

In Excel it would simply be COUNTIF(A1:G1,>=5), referencing that table in the visual. 

But I dont think that is possible here.


Any ideas?

All ideas welcome!

Or is it a deadend?


THANKS

 

5 Replies