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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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