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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors