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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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

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

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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