cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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?

 

ChartLogics.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
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)

4.PNG

 

 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.

View solution in original post

2 REPLIES 2
Highlighted
Super User IV
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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
My Recent Blog -Week is not so Weak Connect on Linkedin

Proud to be a Super User!

Highlighted
Community Support
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)

4.PNG

 

 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.

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

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

July 2020 Community Highlights

Learn about the exciting things that happened in July.

Get Ready for Power BI Dev Camp

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.

Power BI Desktop August 2020 Update

Power BI Desktop August 2020 Update

We have great updates this month! Click the link for the video with more info.

Top Solution Authors
Top Kudoed Authors