cancel
Showing results for
Did you mean:
Highlighted
New Member

## Need Help of Chart Logic

Hello All,
I need your help because I feel like I am doing something wrong with Logic of Measurement. What I am trying to do is; I have raw data table in PBI, like the table at left hand side. And with DAX; I am calculating the Weekly Results. As of here, there is no problem.
But I cannot get any chart like below at right hand side.
As far as I search and learn that; a Measure cannot be used in a X-Axis of a Chart. I feel that, I couldn't understand the logic of Measurement.
Can you please tell me; with which Visual I should visualize the weekly scores in a Chart?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support

## Re: Need Help of Chart Logic

Hi @FarukS ,

A measure cannot be used in a X-Axis of a Chart. It is right. However, as your image shown, it is using a week column as x-axis in the chart. You can implement it. Please reference my sample to have a try.

``````Measure =
VAR ON_TIME = CALCULATE(SUM('Table'[Quantity]),FILTER('Table','Table'[Status] = "On time"))
VAR Quantity_week = CALCULATE(SUM('Table'[Quantity]),ALLEXCEPT('Table','Table'[Week]))
RETURN
DIVIDE(ON_TIME,Quantity_week)``````

For more details, please see the attachment.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
Highlighted
Super User IV

## Re: Need Help of Chart Logic

@FarukS , This chart is possible. Measures can be dragged to the value field. You simply Drag these two on Bar/Clustered chart you will get that

My Recent Blog -Week is not so Weak Connect on Linkedin

Proud to be a Super User!

Highlighted
Community Support

## Re: Need Help of Chart Logic

Hi @FarukS ,

A measure cannot be used in a X-Axis of a Chart. It is right. However, as your image shown, it is using a week column as x-axis in the chart. You can implement it. Please reference my sample to have a try.

``````Measure =
VAR ON_TIME = CALCULATE(SUM('Table'[Quantity]),FILTER('Table','Table'[Status] = "On time"))
VAR Quantity_week = CALCULATE(SUM('Table'[Quantity]),ALLEXCEPT('Table','Table'[Week]))
RETURN
DIVIDE(ON_TIME,Quantity_week)``````

For more details, please see the attachment.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Announcements

#### August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

#### July 2020 Community Highlights

Learn about the exciting things that happened in July.

#### Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.