cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
chen_shany New Member
New Member

dsum in power bi?!

hi, 

i have a table in DW that is updated every month.

how can I use DAX for summarizing "product a" for the most updated date?

 

dateproduct aproduct b
01/01/201869500
01/01/201816695221
01/01/20180128
01/01/201800
01/02/20180129
01/02/201869500
01/02/201816685220
01/02/201800
01/03/201816665222
01/03/20180127
01/03/201869497
01/03/201800
01/04/201816615221
01/04/201869497
01/04/20180127
01/04/201800
01/05/201816615221
01/05/201869497
01/05/20180127
01/05/201800
1 ACCEPTED SOLUTION

Accepted Solutions
Microsoft Phil_Seamark
Microsoft

Re: dsum in power bi?!

HI @chen_shany

 

I think this calculated measure will work for the data as you present it.  I have attached a PBIX file that shows this and also a measure that works with Product B.  However I recommend you pivot your data around so that Products are in rows and not columns.

 

Most Updated Product A = 
    MAXX(
        FILTER(
            'Table1',
            'Table1'[product a]=MAX('Table1'[product a])
            ),
        'Table1'[date]
        )

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

1 REPLY 1
Microsoft Phil_Seamark
Microsoft

Re: dsum in power bi?!

HI @chen_shany

 

I think this calculated measure will work for the data as you present it.  I have attached a PBIX file that shows this and also a measure that works with Product B.  However I recommend you pivot your data around so that Products are in rows and not columns.

 

Most Updated Product A = 
    MAXX(
        FILTER(
            'Table1',
            'Table1'[product a]=MAX('Table1'[product a])
            ),
        'Table1'[date]
        )

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors