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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
telsweil93
New Member

Sumif equivalent with several filter arguments & across tabels

Hello,

 

we work with employees' time data and need to create a relationship between the periods in addition to the relationship between the Local Personnel ID.

Unfortunately, this is not possible in the model. As a solution, we would like to add a sumif-function to the data model.

However, this function must allow several filter arguments (period, Local Personnel ID, time type (f.e. sickness)).

However, the sumif-functions I allready know only allow one filter argument.

 

CALCULATE(SUM('PTBAL00- Zeitkonten'[Anzahl Stunden]),FILTER(ALLSELECTED('PTBAL00- Zeitkonten'),'PTBAL00- Zeitkonten'[Local Personnel ID]=EARLIER('WFM alle Standorte'[Local Personnel ID])))

 

SUMX(FILTER('PTBAL00- Zeitkonten', 'PTBAL00- Zeitkonten'[Local Personnel ID]='WFM alle Standorte'[Local Personnel ID]),'PTBAL00- Zeitkonten'[Anzahl Stunden])

 

 

The aim is to have another calculated column in the "WFM all locations" table, which is calculated from the "PTBAL00 time accounts" table. In addition to the filter [local personnel ID], we also need a filter for time type and period.

 

Does anyone have an idea for a suitable function?

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @telsweil93 

 

Can you provide some sample data or simple pbix files? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@telsweil93 , Nor very clear to me. See if these can help

refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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