Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon'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.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
121 | |
79 | |
48 | |
38 | |
31 |
User | Count |
---|---|
192 | |
79 | |
70 | |
50 | |
42 |