March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have two tables, an aggregated table(AggrTbl) and another table (Lkup) is a lookup table. They are separate now but can be joined by Staff Name. I need help in calculating the Cost.
In the AggrTbl, I need to check if StaffName exists in Lkup table. If the StaffName exist, then i need to the corrosponding Rate. Then multiply Rate times AggrWklyHrs. If StaffName does not exist in Lkup table, then I have a default rate of 50. What formula should I use for Cost in the AggrTbl ?
Solved! Go to Solution.
Try something like this:
Cost =
VAR varLookup =
LOOKUPVALUE (
Lkup[Rate];
Lkup[StaffName]; AggrTbl[StaffName]
)
RETURN
IF (
varLookup <> BLANK();
varLookup;
50
)
Regards
Try something like this:
Cost =
VAR varLookup =
LOOKUPVALUE (
Lkup[Rate];
Lkup[StaffName]; AggrTbl[StaffName]
)
RETURN
IF (
varLookup <> BLANK();
varLookup;
50
)
Regards
Worked perfectly. Thank you so much.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
165 | |
116 | |
63 | |
57 | |
50 |