Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
Hi,
I'm just looking for some general advice on how to handle reporting on employees when their positions and departments are constantly changing. I currently have a DAX measure that looks up the employee's position based on the month/date chosen in a slicer, but I am unable to use the Measure as a slicer to view one group of positions at a time. Same for department. If the department is dynamic in a Measure then I am unable to use a slicer for department. I would also like to subtotal reports by position which is also not allowed since Measures cannot be used as Rows in the Matrix visual. Surely others have had this issue and I've scoured google and I have not found any feasible solutions.
Would you be able to provide a mock-up with sample data (paste as table) and the expected result? Does your data have an Effective Date column, or Date From/Date To columns?
Proud to be a Super User!
Hi,
Thank you for responding. Yes, I have an effective date for the changes. I created a sample file. Here: https://drive.google.com/file/d/105S9usiQ1uQgvItK6_4JTrVOF0NqRK_t/view?usp=share_link
You can see that I have the [ProfType] measure working exactly as intended, but I also want to be able to use that measure in a slicer and subtotal the matrix by that measure. Since neither of those things are possible in Power BI, I'm wondering if there is a better way to structure the data to avoid having to use a measure for this data or another work around or something I'm not thinking of?
Hi,
I think the approach should be as follows:
Try this calculated column in dbo_Transactions:
ProfType =
VAR vEffDate =
MAXX (
FILTER (
RELATEDTABLE ( dbo_ProfType ),
dbo_ProfType[Effective Date] <= dbo_Transactions[TransDate]
),
dbo_ProfType[Effective Date]
)
VAR vResult =
MAXX (
FILTER (
RELATEDTABLE ( dbo_ProfType ),
dbo_ProfType[Effective Date] = vEffDate
),
dbo_ProfType[Professional Type]
)
RETURN
vResult
It retrieves the Professional Type in effect on the TransDate. Create a slicer using this calculated column.
Proud to be a Super User!
@DataInsights Hi, thank you again for your response. I had considered using a calculated column in the Transactions table, so I will give it a shot, but I have two concerns. First is regarding performance since Transactions table in my actual model is at least a million rows and growing every day. And second, I'm concerned this solution might make professionals show up on the report twice (once in each category if they have hours from a prior year that haven't been billed yet).
Is the requirement to show all of a professional's hours in the category that corresponds to the date slicer, as opposed to the category that corresponds to the transaction date?
Proud to be a Super User!
@DataInsights Yes, exactly, it should be as of the slicer date, not necessarily as of the Transaction date. Thanks!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!