Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Hi all
The provided Power BI data model includes 'Date' and 'Stores' as dimension tables and 'Managers' as a fact table, linked by a one-to-many relationship.
Can you help me to create a calculated column in the 'Stores' table to display the latest manager entry from the 'Managers' table, as depicted in the illustration.
Thanks in advance
regards
Solved! Go to Solution.
Hi @Anonymous ,
Here are the steps you can follow:
1. Create calculated column.
Mg =
var _date=
MAXX(
FILTER(ALL('Managers'),
'Managers'[Stores]=EARLIER('Stores'[Stores])),[Date])
return
MAXX(
FILTER(ALL('Managers'),
'Managers'[Stores]=EARLIER('Stores'[Stores])&&'Managers'[Date]=_date),'Managers'[Manager])
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
@Anonymous
is this what you want?
Proud to be a Super User!
Hi @Anonymous ,
Here are the steps you can follow:
1. Create calculated column.
Mg =
var _date=
MAXX(
FILTER(ALL('Managers'),
'Managers'[Stores]=EARLIER('Stores'[Stores])),[Date])
return
MAXX(
FILTER(ALL('Managers'),
'Managers'[Stores]=EARLIER('Stores'[Stores])&&'Managers'[Date]=_date),'Managers'[Manager])
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
112 | |
112 | |
105 | |
94 | |
58 |
User | Count |
---|---|
174 | |
147 | |
136 | |
102 | |
82 |