The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All,
I'm trying to create an Average for a count distinct on a time series data, using the below formula i managed to create an Average line
I'm expecting the end result to look like this
Thanks,
Naveen
Solved! Go to Solution.
Hi @navenn08
Please try
AVG_RECEIPTS =
IF (
[TOT_REC] <> BLANK (),
CALCULATE (
AVERAGEX (
VALUES ( 'DATE'[Date] ),
CALCULATE ( DISTINCTCOUNT ( CO_DLY_sample[CLM_NUMBER] ) )
),
ALLSELECTED ()
)
)
Hi @navenn08
Please try
AVG_RECEIPTS =
IF (
[TOT_REC] <> BLANK (),
CALCULATE (
AVERAGEX (
VALUES ( 'DATE'[Date] ),
CALCULATE ( DISTINCTCOUNT ( CO_DLY_sample[CLM_NUMBER] ) )
),
ALLSELECTED ()
)
)
User | Count |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
32 | |
15 | |
12 | |
12 | |
7 |