Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi,
I have issue with line chart. I would like to show how many leavers and new joiners we had in 2018-2023. When I use dax to calculate it is showing proper values. However line chart is showing different values for leavers -- 596(ok) vs 169(not ok) in 2023. Would appreciate your help.
Solved! Go to Solution.
@zuziak88
You have two different date columns in your fact table, start and end dates, I created an inactive relationship from Date[Date] to TrainingTable[Exit Date] and the following meaures :
Leavers 1 =
CALCULATE(
DISTINCTCOUNT( Employee_Training_Table[empid] ),
USERELATIONSHIP( 'Date'[Date] , Employee_Training_Table[exitdate] )
)
New Joiners 1 =
DISTINCTCOUNT( Employee_Training_Table[empid] )
File attached, you may use these measure where necessary
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@zuziak88
You have two different date columns in your fact table, start and end dates, I created an inactive relationship from Date[Date] to TrainingTable[Exit Date] and the following meaures :
Leavers 1 =
CALCULATE(
DISTINCTCOUNT( Employee_Training_Table[empid] ),
USERELATIONSHIP( 'Date'[Date] , Employee_Training_Table[exitdate] )
)
New Joiners 1 =
DISTINCTCOUNT( Employee_Training_Table[empid] )
File attached, you may use these measure where necessary
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
71 | |
68 | |
50 | |
30 |
User | Count |
---|---|
119 | |
101 | |
73 | |
65 | |
40 |