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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Average total for the period

Hi everybody.

 

I need to calculate the unique number of tradepoints for the period and then display the average value for further use, tell me how to do this?

The results can be calculated in two ways:
1.Calculate dropsize by tradepoints for each month then take the average for the required period
2.Summaraize count for the period divided by the average ACB (unique ID trade point) monthly for the selected period

 

Example in the picture

Nick_kz_1-1612347627572.png

 

 

4 REPLIES 4
Anonymous
Not applicable

Hello @Anonymous 
Can you please clarify how you did the calculation for DropSize and DropSizeQuarter?

Anonymous
Not applicable

dropsize_1month =  sum(count_1month) / distinctcount (TradePointID_1month)

dropsize_2month =  sum(count_2month) / distinctcount (TradePointID_2month)

dropsize_3month =  sum(count_3month) / distinctcount (TradePointID_3month)

 

Dropsize_quarter

1 option = sum(count_1month, count_2month,count_3month) / avarage (distinctcount (TradePointID_1month), distinctcount (TradePointID_2month),distinctcount (TradePointID_3month))

 

2 option = avarage (dropsize_1month, dropsize_2month, dropsize_3month)

 

Anonymous
Not applicable

Hello @Anonymous 
Check the attached file 

Anonymous
Not applicable

Hello @Anonymous , Thank you for responding.

 

In your calculations, everything is logical, but the possibility of choosing a period has not been taken into account, I still would like to get a universal calculation tool, regardless of the number of selected months / quarters / years

 

 

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors