Forum Discussion
htaunay
Microsoft Employee
10 years agoSwitch X Axis column through a slicer filter
Hi PowerBI experts, I am currently working with a dataset where each line represents information of a specific hour, and would like to plot such data grouped by days, weeks or months, given the u...
mws5872
Helper II
8 years agoso, almost there I have everything working except quarters. Does anyone know the proper way to use the M(Power Query Lanagugage) to do something like this equivilant in excel/PBI Measures ?
Quarter
| DateFormat = year('Quarter Dates'[DateValue])&"-Q"&ROUNDUP(MONTH('Quarter Dates'[DateValue])/3,0) |
Month
Dateformat =year('Quarter Dates'[DateValue])&"-"&MONTH('month Dates'[DateValue])
I have not been able to find this out yet.
mws5872
Helper II
8 years agook-- I figured it out, in case others need this!!
= Table.AddColumn(#"Renamed Columns", "Custom.1", each Text.From(Date.Year([Measure]))&"-"&Text.From(Date.Month([Measure])))
BOOM DONE.
I will keep you updated on final solution.