Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Earliest Function

Hi,

We are trying to create a measure based on calculated column, need help on the approach. Below the data like in Power Bi table. Where Date is the slicer.

 

DateIDPercentage
8/30/2021123459.13%
8/30/2021123459.13%
8/30/2021123459.13%
8/30/2021123459.13%
9/6/2021569814.22%
9/6/2021569814.22%
9/6/2021569814.22%
9/13/2021148511%
9/13/2021148511%
9/13/2021148511%
9/20/20212698744.23%
9/20/20212698744.23%
9/20/20212698744.23%
9/20/20212698744.23%
9/20/20212698744.23%

 

We are trying to get (If we select date between 8/30/2021 and 9/6/2021) then sum(59.13%+14.22%)/2 (distinct ID)

and if we select date range between 8/30/2021 and 9/20/2021 then  sum(59.13%+14.22%+11%+44.23%)/4 (distinct ID)

and if we select date range between 9/15/2021 and 9/25/2021 then  sum(44.23%)/1 (distinct ID)

 

1 Reply