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

Report output basis 3 or more drop down list

Dear Guru/s,

I have to calculate YTD Avg. headcount basis below dropdowns (All select /or any combination):

"Month",

"Employee Type",

:Status",

"Unit"

 

Table format is as follows for BI desktop : 

Filter 1

(Employee Type)

Filter 2

(Status)

Filter 3

(Unit)

 

FY_YearMonthClosing HCYTD Avg HC
FY2020

Apr

100100
FY2020May95195
FY2020Jun100295

 

Have used running avg basis Year and Month  : 

Formula : 

YTD Avg HC = CALCULATE([MTD Avg. HC],
FILTER(
ALL(Attrition_DataTable3),
Attrition_DataTable3[Year] = MAX (Attrition_DataTable3[Year])
&& Attrition_DataTable3[DateKey] <= MAX(Attrition_DataTable3[DateKey])
)
)
 
But unable to modify the calculation basis given drop downs  - so that AVG HC changes basis selection :

"Month",

"Employee Type",

:Status",

"Unit"

 

Please advise.

 

Thanking in advance,

Pratz

2 REPLIES 2
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

Are they from the same table? If not, what the relationships between them? It is better to share a dummy pbix file than describe. We will understand the situation clearly.

 

Best Regards,

Xue Ding

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.