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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
sam_nik12345
Helper II
Helper II

month wise sales

My table looks like below:

datesales
2017-071
2017-081
2017-081
2017-081
2017-091
2017-091
2017-091
2017-091

 

I want to achieve like below:

datesales
2017-071
2017-083
2017-094

 

How can I do so? Kinldy help.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@sam_nik12345 , This seems like a month to me not a date. If this in same format then

 

Just but this in visual and the put a measure = sum(Table[sales])

 

If you do not have month you have date create a new column month

Month Year = format([Date], "YYYY-MM")

and use this in visual with sales measure 

 

Find the file attached after signature

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@sam_nik12345 , This seems like a month to me not a date. If this in same format then

 

Just but this in visual and the put a measure = sum(Table[sales])

 

If you do not have month you have date create a new column month

Month Year = format([Date], "YYYY-MM")

and use this in visual with sales measure 

 

Find the file attached after signature

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi @amitchandak 

 

When I visualize this with other tables, it goes back to original state. Both tables are connected with date table and I get below view. Please help me to write a DAX function to resolve this.

 

datesalespo
2018-07223
2018-083425
2018-08 23
2018-08 34
2018-09 23
2018-101212

 

My expected view as below:

datesalespo
2018-07223
2018-083482
2018-09 23
2018-101212

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.