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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
davidepolizzi
New Member

Choose measure against baseline

Hello community, 

 

I have a visualization as a table. I have several headoucounts (one row per employee and each row has a date field). 

I want to show the headcount by group (one of the field in the dataset) and count the primary key to get the different headcount per group per period. 

 

Now comes the tricky part I can't figure out. 

I have a pre-set baselie, and I would like the user to select the period they want to compare against the deadline. 

 

I can acheve this by adding a filter and select two period (baseline+period to compare). but ideally I would like the user the be able to only choose the comparing period and not the baseline.

 

I would like to, basically have a filter (force single value selection (easy)) but have a value (the baseline) unaffected by the filter selection.

Is this at all possible? How would I go about it?

 

Thanks in advance to any pointer. I don't need full solution, but if anyone could point me in the right direction....I am quite new to Power BI.

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @davidepolizzi ,

 

You can try creating a CALENDAR table and using the date field as slicer then creating a measure like below.

 

calculate(count(id),filter(table,table[date]=selectedvalue(CALENDAR[date])))

 

This would help calculate the headcount by the selected date and the baseline in data table won't be filtered by the slicer.

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

1 REPLY 1
v-jayw-msft
Community Support
Community Support

Hi @davidepolizzi ,

 

You can try creating a CALENDAR table and using the date field as slicer then creating a measure like below.

 

calculate(count(id),filter(table,table[date]=selectedvalue(CALENDAR[date])))

 

This would help calculate the headcount by the selected date and the baseline in data table won't be filtered by the slicer.

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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