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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

Doesn't chart well per month

Hello, good afternoon

I have the following image, on the right is the graph that shows the deviations in percentage by MONTH. on the left are the measurements that calculate the deviations per month. When graphing, I don't get the X-axis with the months (January, February, March, etc).

gcarrasco_1-1721850975275.png

when I placed Execution month, I thought it was going to be solved, but no!:

gcarrasco_2-1721851038898.png

How can it be solved?

Adjunto el programa .pbix en google drive: https://drive.google.com/file/d/1HsdFSGnvqgq2sD372iy_KTq8cMjUBwtp/view?usp=sharing

Thank you!.

Best regards.

1 ACCEPTED SOLUTION

Hi @Syndicate_Admin 

The table you created cannot be sorted because it contains a blank row.

Ritaf1983_0-1721963496419.pngRitaf1983_1-1721963526642.png

This happened because you didn't build it based on a well-structured calendar table, but rather on a fact table. The most correct option is to work with a calendar table. Otherwise, to specifically solve the current problem, you can manually create a months table by typing:

Ritaf1983_2-1721963857416.png

Then you can sort month names by it's number

Ritaf1983_3-1721964013512.png

Resullt :

Ritaf1983_4-1721964112198.png

The updated pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

5 REPLIES 5
Ritaf1983
Super User
Super User

Hו @Syndicate_Admin 
Since your file isn't in English, it's quite difficult to decipher. So, I'll explain the concept using my example.
Currently, you don't have an X-axis because you've only added measures that simply appear one after the other.
To display data by month with an X-axis and all its functionalities, you can use a dynamic measure.
For instance, let's say I want to show sales in January, profits in February, and their combined sum in March.
(Of course, there's no real business logic behind this, I'm just demonstrating how to build the functionality of different measures based on months).
In the first step, you should create the months' table that will be disconnected from other tables :

Ritaf1983_0-1721875363071.png

then you can use Dax like :

Dynamic measure example =
var
selectedMonth = SELECTEDVALUE('Disconnected calendar'[Month])
Return
SWITCH(selectedMonth,
1,[Total sales (K/$)],
2,[total profits (K/$)],
3,[total profits (K/$)]+[Total sales (K/$)],BLANK())
Result :
Screenshot 2024-07-25 054646.jpg

The pbix with the example is attached.
A more detailed guide for the dynamic measure is here:
https://www.youtube.com/watch?v=ODNsd1G4tDM&t=172s

 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Good night! Thank you very much for your help! I was able to do what you said!

gcarrasco_0-1721957934238.png

But I still have to sort out the months !. It orders me alphabetically, but it does not order me as a date! How can I achieve it?

Google Drive link attached:

https://drive.google.com/file/d/1TYsk5MkDcM-HNz7osmnmE69IVz_PYoeB/view?usp=sharing

Thanks a lot!

Best regards.

Hi @Syndicate_Admin 

The table you created cannot be sorted because it contains a blank row.

Ritaf1983_0-1721963496419.pngRitaf1983_1-1721963526642.png

This happened because you didn't build it based on a well-structured calendar table, but rather on a fact table. The most correct option is to work with a calendar table. Otherwise, to specifically solve the current problem, you can manually create a months table by typing:

Ritaf1983_2-1721963857416.png

Then you can sort month names by it's number

Ritaf1983_3-1721964013512.png

Resullt :

Ritaf1983_4-1721964112198.png

The updated pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Thanks a lot! I stay right!

Happy to help 🙂

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.