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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Power BI: How to get chart of cases pr. costumer pr. 30 days.?

In Power BI I would like to make a chart showing the number of service cases pr. costumer for the last 30 days.

So fare, I have made a measurement showing the number of cases for the last 30 days:

Cases each 30. day = CALCULATE([Number of cases], DATESINPERIOD('Page 1'[Updated].[Date],TODAY(),-30,DAY)).

Every case has a uniqe case ID.

So the question is: How can I relate that to each costumer?

I hope someone can help. Thanks in advance!

BR Rebekka.

2 REPLIES 2
Anonymous
Not applicable

Hi. It did not help, since I cannot choose my number of cases is a measurement, witch I canput into your measurement formal

Anonymous
Not applicable

Hi @Anonymous ,

 

Try to add a filter. We often use

FILTER(ALLSELECTED('TABLENAME'),[COLUMNNAME]=MAX('TABLENAME'[COLUMNNAME]))

to gourp by.

For example,

Measure = CALCULATE(SUM('Table'[Sales]),FILTER(ALLSELECTED('Table'),[Customer]=MAX('Table'[Customer])))

vstephenmsft_0-1663827717754.png

 

 

Best Regards,

Stephen Tao

 

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.