Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
peoplehelpme
Helper I
Helper I

Measure average of data between 7am to 7 pm & how to not have x axis slider in line clustered chart

i have 2 questions

1) how to calculate average of this [Total]

peoplehelpme_0-1709629013682.png

which i use this formula but, it returns in  blank

peoplehelpme_1-1709629068359.png

AvgTotal = AVERAGEX(
    FILTER(
        ALL(wgr),
        wgr[Time] >= TIME(7, 0, 0) && wgr[Time] <= TIME(19, 0, 0)
    ),
    wgr[Total ]
)
 
 
2) i want to fixed column bar in this chart (i want to see every bar as i selected date) but now it shown in slider x-axis (i think it might be relevant to multiple x-axis ([DateTime]&[Time]), i think i want to try date with time heirachy but i dont know how to write it)peoplehelpme_2-1709629322846.pngpeoplehelpme_3-1709629338261.pngpeoplehelpme_4-1709629350195.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @peoplehelpme ,

 

The line and clustered column chart does not support this display format.
I think it is possible to add the date field to the column legend as a basis for grouping and displaying all values.

M_ = SUM(wgr[Total])

vkongfanfmsft_0-1709704778042.png

 

Or only keep each date-based filter via bookmark. You can refer to below document:Create report bookmarks in Power BI to share insights and build stories - Power BI | Microsoft Learn

 

Best Regards,
Adamk Kong

 

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

3 REPLIES 3
Anonymous
Not applicable

Hi @peoplehelpme ,

 

In my tests, I can display the formula you provided correctly:

vkongfanfmsft_0-1709692034396.png


Also, if you don't want to display the x-axis as a slider, you can change the x-axis type:

vkongfanfmsft_1-1709692103977.png

 


Finally, if you want to display the corresponding results based on the selected date. You can create a date table as a filter with the following formula and then create a relationship between it and the wrg table.

Date_slicer = VALUES(wgr[Date])

vkongfanfmsft_2-1709692125449.png

vkongfanfmsft_3-1709692146002.png

 

Best Regards,
Adamk Kong

 

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

hi sir,

peoplehelpme_0-1709697675286.png

first row of chart is image that i want the chart will be, see all data in one page, no slider x-axis

 

Anonymous
Not applicable

Hi @peoplehelpme ,

 

The line and clustered column chart does not support this display format.
I think it is possible to add the date field to the column legend as a basis for grouping and displaying all values.

M_ = SUM(wgr[Total])

vkongfanfmsft_0-1709704778042.png

 

Or only keep each date-based filter via bookmark. You can refer to below document:Create report bookmarks in Power BI to share insights and build stories - Power BI | Microsoft Learn

 

Best Regards,
Adamk Kong

 

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

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.