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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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