Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Good!
I have created a line graph in which on the horizontal axis you have the time and on the vertical axis a measurement.
I want to create a filter that is similar to the one in the following image:
In which, the option to group by date if I select "By months" shows me the data grouped by months, if I select "By days" I do it by days and if I select by years I do it by years. That is, the horizontal axis of my graph varies automatically according to the selection I make in the second filter.
Thank you!
Solved! Go to Solution.
Hi @Syndicate_Admin ,
According to your description, you can create a column corresponding to the year, month, and day based on your date, and then use the year, month, and day columns to create a filed parameter and put this parameter into the x-axis of the line graph, as follows
Create day, month,year column
DAY = DAY('Table'[Date])
MONTH = MONTH('Table'[Date])
YEAR = YEAR('Table'[Date])
Use these columns as filed parameter value
Use parameter as x-axis
Final output
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Syndicate_Admin ,
According to your description, you can create a column corresponding to the year, month, and day based on your date, and then use the year, month, and day columns to create a filed parameter and put this parameter into the x-axis of the line graph, as follows
Create day, month,year column
DAY = DAY('Table'[Date])
MONTH = MONTH('Table'[Date])
YEAR = YEAR('Table'[Date])
Use these columns as filed parameter value
Use parameter as x-axis
Final output
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
@Syndicate_Admin can u help me pls. I posted something about expanding tables and my questions is not good formulated. Can you look over it?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
83 | |
69 | |
68 | |
39 | |
37 |