The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I am seeking some DAX help to compare annual counts by year with the starting year as a reference for each year.
I see the time intelligence functions, but I am not sure how to have them reference the first year.
The DAX images below are as far as I got (my apologies if this is a beginner question)
DAX Attempts:
Solved! Go to Solution.
Hi @buitrond
Create a measure using the following DAX Expression to find the First Year Headcount:
First Year =
Var _MinDate =
CALCULATE(
MIN('1.1'[Year_Date]),
ALLSELECTED('1.1'[Year_Date])
)
RETURN
CALCULATE(
[Headount],
'1.1'[Year_Date]=_MinDate
)
Output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Hi,
Share the download link of the PBI file.
Hi @buitrond
Create a measure using the following DAX Expression to find the First Year Headcount:
First Year =
Var _MinDate =
CALCULATE(
MIN('1.1'[Year_Date]),
ALLSELECTED('1.1'[Year_Date])
)
RETURN
CALCULATE(
[Headount],
'1.1'[Year_Date]=_MinDate
)
Output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!