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
Anonymous
Not applicable

Comparing data with selected months and previous months

Hello,

 

I have a table called customer Transaction . Please find sample data as below. It has many rows with other cust id, year and month.

Cust IdYearMonthCol1Col2
12019JAN510
22019JAN220
32019JAN330
42019JAN10100
12019FEB1200
22019FEB220
62019FEB300400

 

I want to select year and month through Slicer and calculate New customers sales and no sales customers.

For Example if I select year= 2019 and Month = FEB, result should display as below after comparing previous month. I used calculated table, its working hard code value but not through slicer.

 

Please Help!!!!!!!

 

New Customers   
     
Cust IdYearMonthCol1Col2
62019FEB300400

 

Customers removed this month

Cust IdYearMonthCol1Col2
32019JAN330
42019JAN10100

 

Regards

Samar

 

 

0 REPLIES 0

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!

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.