cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
LiziM
Helper I
Helper I

Column Chart by Month Not Working

Hi all,

I'm trying to show all the charts on a report by "Month name" on the x-axis, but only showing the months that fall in the date slider period highlighted in yellow (screenshot below).

LiziM_0-1648619355383.png

All three graphs (Operator Efficiency, Availability, OEE) are measures and each of them have the same field, "Month_Name", on the x-axis, however, the Availability graph is showing all months' data (not just the month(s) that fall within the date slider selection).

 

Any ideas on why this may be? Happy to give more info if required.

4 REPLIES 4
kumarthombre20
Resolver I
Resolver I

@LiziM It would be great if you can share the Availability Measure . It seems like something need to be check in the measure

To understand the Availability calculation you will need some background:

The Shift_Data table is used to capture production output, which can either be captured by shift (so once at the end of the day; if two different types of products are made during the shift, there will be two records in this Shift_Data table for that shift) or by hour (so each hour is a new record in the shift data table).

The Availability measure uses the following calulation:

 

Availability = 1-
(SUM('Shift_Data'[Downtime])
/
(SUM('Shift_Data'[Available_Time]))
)

 

The "Downtime" shown above is a column from the Shift_Data table, while "Available_Time" is a calculated column shown below ("Type" indicates whether the data was captured hourly or by shift):

 

Available_Time= 
//this is the full hour/shift - planned downtime
if([Type]="Hour",
//Hourly available time:
60-[Planned Downtime],
//Shiftly available time:
if([Find_last_entry_for_same_Shift]="MAX",LOOKUPVALUE('Shift_Setup'[Total Shift time],'Shift_Setup'[ID],[Shift_Setup_ID])-[Planned Downtime]
))

 

There is another table called "Shift_Setup" which gives the total time for a shift when data is captured by shift, which is what is being referenced above. The "Planned downtime" above comes from the Shift_Data table. The "

[Find_last_entry_for_same_Shift]="MAX"" part of the formula ensures that the shift time isn't duplicated if more than one product is recorded for that shift. 
 
It is quite a complex model, so let me know if I must explain further.
kumarthombre20
Resolver I
Resolver I

@LiziM Can you please check the Slicer interaction
Select "Date" Slicer, Go to "Format"--> Edit Interactions

kumarthombre20_0-1648623624188.png

 

Hi there, Thank for the response! 

I tried turning off interactions (on two charts for comparison) here:

LiziM_1-1648649374390.png

 

And then turning on (for two charts again) here:

LiziM_2-1648649407075.png

 

 

The Availability graph doesn't behave as expected- it appears to change the values in the graph, but the x-axis still displays all months. The Availability measure is a bit complicated, but I can share it if need be. Let me know.

 

Thanks agin!

 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors