cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Thomas94401
Frequent Visitor

Month transformation

Hi, 

 

I have some issues about representing data.

 

I got this table : 

 

DateOption Number of sales
01/01/2019A1
01/01/2019B2
01/02/2019A3
01/02/2019B4
01/03/2019A5
01/03/2019B6
01/04/2019A7
01/04/2019B8

 

i would like to draw the number of sales by month using a slicer.

 

Thomas94401_0-1635098568142.png

 

Instead of having 2 and 3 in x-axis, corresponding to the month number, I prefer having M1 and M2 (for the first month and second month of the slicer).

 

Do you know if it is possible to get this result ?

 

Thanks in advance !

 

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@Thomas94401 it is not that straightforward, see an attached solution, tweak as you see fit.

 

Follow us on LinkedIn

 

Learn about conditional formatting at Microsoft Reactor

My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
parry2k
Super User
Super User

@Thomas94401 it is not that straightforward, see an attached solution, tweak as you see fit.

 

Follow us on LinkedIn

 

Learn about conditional formatting at Microsoft Reactor

My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.