cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jeados
Regular Visitor

Get the first value of each month

Hi all, 

 

I have a card componant that show the credits available for each user by month. 

For exemple, each month, i have 8 credits allocated. But the available credits information are on a reservation table. It makes the allocated credit per month duplicated for each reservation. 

 

I would like to SUM the allocated credits into a Card componant by Month but with a distinct like the first row of each month. 

Here's an exemple of what i need. 

Jeados_0-1656522126887.png

 

I would like to get only 1 value per month and sum it 

 

How can i do this ? 

 

 

Thanks 

 

 

 

 

1 ACCEPTED SOLUTION
EylesIT
Solution Supplier
Solution Supplier

@Jeados , I believe this measure will do the trick:

Monthly Allocated Credits = 
    SUMX(
        SUMMARIZE(
            'YourTable'
            ,'YourTable'[Month]
            ,'YourTable'[Allocated Credit Per Month]
        )
        ,'YourTable'[Allocated Credit Per Month]
    )

View solution in original post

3 REPLIES 3
Jeados
Regular Visitor

@EylesIT Thanks for the summarize measure ! It works perfectly 

EylesIT
Solution Supplier
Solution Supplier

@Jeados , I believe this measure will do the trick:

Monthly Allocated Credits = 
    SUMX(
        SUMMARIZE(
            'YourTable'
            ,'YourTable'[Month]
            ,'YourTable'[Allocated Credit Per Month]
        )
        ,'YourTable'[Allocated Credit Per Month]
    )
vapid128
Solution Specialist
Solution Specialist

sumx(values([Month], calculate(max([Allocated credit per month]))

Helpful resources

Announcements
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 24 without aka link and time 768x460.jpg

Ted's Dev Camp - July 28, 2022

Watch Session 24 of Ted's Dev Camp along with past sessions!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors