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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Brand
Frequent Visitor

How to group or measure the latest record of a customer per month?

EDIT:
Marked as new because of my last reply, asking for an additional column.
Thank you in advance 🙂

---------------------------------------
Dear BI heroes,

 

I have searched my question on forums and yourtube, but I just can't seem to get is right...
I have a table that looks something like this: 

CustomerIngestionDateLincenses
A10-3-2023100
A11-3-2023101
A12-3-202399
B13-3-202380
B14-3-202390
C16-3-202325
A15-4-2023100

 

What I woul dlike to get in my PowerBi visual is the customer and per month the most recent value of licenses.
It should look something like this as a result:

Customer ALicenses
March99
April100
Customer B 
March90
Customer C 
March25

 

I do have a "Date" table with Month Name etc. 

 

I do wanne know how to get the rows I want? the visual itself will be no problem 😛 

Thank you in advance!

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

Please check attached pbix for more details.

Screenshot_3.png

View solution in original post

2 REPLIES 2
Ahmedx
Super User
Super User

Please check attached pbix for more details.

Screenshot_3.png

Brand
Frequent Visitor

Hi Ahmed,
Thank you for your fast response, it is exactly what I asked for!

May I ask you a aditional question?
I would like the same result but with an extra licenses group:

Customer IngestionDate Lincenses_A Lincenses_B
10-3-2023 100 20
11-3-2023 101 25
12-3-2023 99 24
13-3-2023 80 50
14-3-2023 90 53
16-3-2023 25 101
15-4-2023 100 19



Thank you in advance!

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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