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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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