Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Always show this month allocation keys

Capture.JPG

 

Hi All, 

 

I would like to create a measure that multiplies the number of FTEs (table1) by an allocation key(table2). The trick here is that the allocation key should ALWAYS be this month's. i.e 0.2. For example if we are looking at Nov21, it should still be multiplied by 0.2. however, if we move into next month, then next month's allocation key will be taken but set for the rest of the year. 

1 ACCEPTED SOLUTION

Hi @Anonymous,

Did you mean to dynamic calculate results based on the current system DateTime value and lookup the rate from another table?

If that is the case, you can create a value in your formula with today function to get the current system date, then you can use it in lookupvalue function to search rate from another table for the following calculations.

Introducing LOOKUPVALUE - SQLBI
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
Kucrapok
Helper I
Helper I

Hello,

Can you give us an idea of what table you have in your model and what columns you have in these table?

Anonymous
Not applicable

Hi, 

 

like in the above picture, i have No of Full Time Employees by date. I also have another time called allocation keys (also in the picture) by date and lastly of course i have a date table. im trying to create a measure by doing sum(No of FTEs) * calculation(sum(allocation keys %), month(today())

Hi @Anonymous,

Did you mean to dynamic calculate results based on the current system DateTime value and lookup the rate from another table?

If that is the case, you can create a value in your formula with today function to get the current system date, then you can use it in lookupvalue function to search rate from another table for the following calculations.

Introducing LOOKUPVALUE - SQLBI
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.