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
mellas_k
Helper I
Helper I

Display only date on the graphe

Hello ,

I have the below  graph and I need to show on Axe X only all months

 

power.png

But my problem that when I choose

 

po.png

I have the below graph:

pp.png

So I have the sum of all months …, can someone help me to display the first graph with only all months and without calculate the sum.

Thanks for your help

12 REPLIES 12
mellas_k
Helper I
Helper I

Hi , 

 

Any help please ? 

Hi @mellas_k,

 

Change the X-axis type to Continuous as is shown in above screenshot will show all twelve months on axis. So what did you mean 'see all the months' and what is your current result after setting type to Continuous?

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-yulgu-msft

When i change the  X-axis i have the below result 

POWER.GIF

 

And i need to show all 12 monthes .. 

 

thanks for your help.

 

Hi @mellas_k,

 

Please try to new a calendar table and create a one to many relationship to source table. Then, in chart visual, add date column from calendar table to X-axis. Repeat all above operations.

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hi @v-yulgu-msft

If I understood correctly what you means ..  

i create a new table , i create a relation between it and  source table , but always i have the same issue ....

i can only see  4 or 5 months 

Date_table.GIF

 

Best regards;

Hi @mellas_k,

 

You could try enlarge the width (drag the right margin manually) of the chart visual to make all months available on X-axis.

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-yulgu-msft

 

Same problem i can not display all the months ..

 thanks ;

Hi @mellas_k,

 

Could you try this workaround:

 

Create a calendar table:

Dim date = FILTER( CALENDAR(DATE(2016,1,1),DATE(2017,12,31)),DAY([Date])=1)

 

Union this calendar table and source table:

Union table =
UNION (
    ADDCOLUMNS ( 'Dim date', "Sales", 0 ),
    SELECTCOLUMNS (
        'SourceTable',
        "Date", 'SourceTable'[SalesDate],
        "Sales", 'SourceTable'[SalesValue]
    )
)

 

Drag date column and sales column from the union table into chart visual. Set X-axis type to categorical.

1.PNG

2.PNG

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
dilumd
Solution Supplier
Solution Supplier

Hi 

 

Try to use Format And Month functions to get the month name and then use it as the x axis’s. 

hi @dilumd

 

I tried to get the month name but I have the same issue ..

thanks 

Hi

 

what if you change the graph formatting as below, (drill down up to date level but the date want shows up. I think this came up with a new update, if you don't see it please update power BI desktop to latest version.

  

hwlp.JPG

HI @dilumd 

thanks for your answer , yes i did it but my boss wants to see all the months .. 

i have not the choice ..

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.