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

sumifs using edit queries

I have replicated two sheets from excel as tables in power BI

Sheet 1:- 

table_name, rec_eff_dt,rec_create_dt, row_count, Valid_date

Sheet 2:-

This is a pivot table for finding the max rec_eff_dt for each table_name, create_dt and valid key record

table_name,rec_create_dt_Valid_date --> max(rec_eff_dt)

Next to this is another sumifs to dispay the row counts

The folrmula is as follows:-

sumifs(row_count,pivot.table_name,table_name,pivot.max(rec_eff_dt)=rec_eff_dt)

The results of this formula are bringing the row_count values for a table_name and if the table_name is duplicated then the row_count i summed.

 

How can I accomplish this in powerBI?

1 REPLY 1
v-yuezhe-msft
Employee
Employee

@Anonymous,

You can use  the CALCULATE(SUM([YourColumn]),FILTER(<filter clause>)) DAX to reproduce sumifs result in Power BI Desktop, for more details about CALCULATE function, please review this article.

If you have questions about DAX, please share sample data of your tables and post expected result following the guide in this blog.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the 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.