cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors