Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

What is the average of transactions by location per day

Hi, 

My formula doesn't work. 

SDR ID average per CP ID average per Day =

AVERAGEX(
    KEEPFILTERS(VALUES('FACT TABLE'[Start Date].[Day])),
    CALCULATE([SDR ID average per CP ID])
)

SDR ID = Unique transaction numbers
CP ID = Location Unit number

I need to calculate the average of SDR ID per CP ID per Day. 
In summary how many times my CP ID was used per day based on the unique SDR ID. 

My columns:
FACT TABLE[SDR ID]
FACT TABLE[CP ID]
FACT TABLE[Start Date]
FACT TABLE[Site]

Please someone assist. 
Many thanks

1 ACCEPTED SOLUTION
vapid128
Solution Specialist
Solution Specialist

emmmmmm

 

TRY

AVERAGEX(
    VALUES('FACT TABLE'[Start Date]),
    CALCULATE([SDR ID average per CP ID])
)
 
that is how i normally do it
 
i don get why you need to add keepfilter and .[day]

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Wow! It worked! Amazing Thank you vapid128 
Much appreciated. Great learing curve for me.
Best wishes, J 

vapid128
Solution Specialist
Solution Specialist

emmmmmm

 

TRY

AVERAGEX(
    VALUES('FACT TABLE'[Start Date]),
    CALCULATE([SDR ID average per CP ID])
)
 
that is how i normally do it
 
i don get why you need to add keepfilter and .[day]

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.