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

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

Reply
Thanh_MA
Frequent Visitor

Calculating number of customer appearances by year

Hi All

 

I have a following solution

 

Thanh_MA_0-1670423556977.pngThanh_MA_1-1670423601475.png

 i use the distinct count of the user by year if they have the project with my company , i mean if this year they have  project , i still count 1 time, anyway to calculate column total to see how many times this user occur following year (sush as, the user name ABB, i work with them in 2020 and 2021, mean 2 times

 

2 REPLIES 2
Thanh_MA
Frequent Visitor

Hi @v-xiaosun-msft 

 

Thank you for your solution, but the problem is :

 

In my data, ABB showing 2 times in both 2020 and 2021, i just one if in 2020 even 10 times ABB showing , it just count 1 times, that mean  i want to show that in 2020 i did working with ABB only ( i dont care how many times in that year)

ABB in 2020 ,2 times: i want count 1
        in 2021, 2 times or what it is i still want count 1



Anyway to do this

 

Many thanks

v-xiaosun-msft
Community Support
Community Support

Hi @Thanh_MA ,

 

According to your description, I made a sample and here is my solution.

Sample data:

vxiaosunmsft_0-1670464730116.png

Method 1: You can put them in the matrix as below.

vxiaosunmsft_1-1670464816087.png

Method 2: You can create a calculated column.

times =
CALCULATE (
    COUNT ( 'Table'[DATE] ),
    FILTER ( 'Table', 'Table'[USER] = EARLIER ( 'Table'[USER] ) )
)

Final output:

vxiaosunmsft_2-1670464890456.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ xiaosun

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.