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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
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.

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

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric 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.

Users online (25)