Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Using 'Week of' dates for chart Axis, Axis will not accept a calculated measure

Short time lurker, first time poster. New to Power BI.

 

My data is a direct query of a SQL view. I used DAX functions to conslidate my time stamped data to the 'Week of' starting on a Monday (thanks to other posts on this forum!). Every column starting with "ws" is a new measure.

 

I would like to use the wsWeekStartingDate as the Axis (x axis) on a column chart. When I drag the wsWeekStartingDate measure to the Axis, it will not accept it. The format for this measure is a date format.

When I use the the Time Stamp Date field from SQL it is categorized by the millisecond and shows a separate column for each data point:

Selecting a single data point shows milliseconds.

I would like the values would be 3 for the week of 7/20 and 2 for the week of 7/13.

 

Any idea why the chart Axis will not accept my new measure? Is there a different way I should go about categorizing the data by 'Week of'?

 

 

2 Replies