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
ADSL
Post Prodigy
Post Prodigy

How to Calculate and Count the Repeat # of Time Order of Customer

Dear BI Community Team,

 

Currently I am doing manually in pivot excel file to count distinct the Invoice number of customer and then filter and count.

 

2022-09-30_21-57-13.jpg

 

Source file: https://drive.google.com/drive/folders/1EK-1SRY-P3R8AxDQhaqH84qebqnS9kdn?usp=sharing 

 

Please kindly advise the measure calculation how to do and count it in Power BI that I am new beginner.

 

2022-09-30_21-56-34.jpg

Best Regards,

3 REPLIES 3
ADSL
Post Prodigy
Post Prodigy

Hi BI Community Team,

 

Please kindly help to support of this topic and suggestion.

 

Best Regards,

amitchandak
Super User
Super User

@ADSL , You will only get 70 in total not like you have shown, You have to segment you measure as I have shown in the video

 

 

Bucket/Segment code
measure = Countrows(Table)

bucket = Generateseries(1,7,1)

new Measure
Sumx(filter(Values(Table[Customer]), [Measure ] = max(bucket[Value])), [measure])

 

 

Dynamic segmentation -Measure to Dimension conversion: https://youtu.be/gzY40NWJpWQ

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak ,

 

Thank you for your feedback. But I am a new beginner of Power BI so then I am trying to follow your measure provided, it's not working.

 

Could you please help to provide more detail guideline or doing sample in BI file?

 

Here is the source that I am trying: https://drive.google.com/drive/folders/1EK-1SRY-P3R8AxDQhaqH84qebqnS9kdn?usp=sharing 

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.

Top Solution Authors
Top Kudoed Authors