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
mayankhginfra
Frequent Visitor

Need to use measure on both axis of bar chart

Hello,

 

I am building a report for one of my client where I need to show the count of equipments for first 10 days of month, classified into two categories (<3, >3).
1: Data record on everyday basis.

2: We need to take average of Total_WH (working hours)

3 Sample data as below:

PlantPlant_NameEquipment_NoDateObjecct_DescriptionTotal_WH
1134UER-PKG-IHEOT10132907-08-2023HYDRA CRANE10.7
1134UER-PKG-IHEOT10132901-08-2023HYDRA CRANE10.5
1134UER-PKG-IHEOT10132902-08-2023HYDRA CRANE10.6
1134UER-PKG-IHEOT10234501-08-2023HYDRA CRANE13
1134UER-PKG-IHEOT10234510-08-2023HYDRA CRANE11.5
1134UER-PKG-IHEOT10234502-08-2023HYDRA CRANE11
1134UER-PKG-IHEOT10234506-08-2023HYDRA CRANE15
1134UER-PKG-IHEOT10234504-08-2023HYDRA CRANE14.2
1134UER-PKG-IHEOT10234507-08-2023HYDRA CRANE11.6
1134UER-PKG-IHEOT10234503-08-2023HYDRA CRANE12
1134UER-PKG-IHEOT10234508-08-2023HYDRA CRANE10.4
1134UER-PKG-IHEOT10537507-08-2023HYDRA CRANE12.5
1134UER-PKG-IHEOT10537501-08-2023HYDRA CRANE11
1134UER-PKG-IHEOT10537506-08-2023HYDRA CRANE8.2
1134UER-PKG-IHEOT10537503-08-2023HYDRA CRANE11.9
1134UER-PKG-IHEOT10537504-08-2023HYDRA CRANE13.5
1134UER-PKG-IHEOT10537508-08-2023HYDRA CRANE11.3
1134UER-PKG-IHEOT10580204-08-2023HYDRA CRANE19.3
1134UER-PKG-IHEOT10580206-08-2023HYDRA CRANE13.6
1134UER-PKG-IHEOT10580209-08-2023HYDRA CRANE12.8
1134UER-PKG-IHEOT10580201-08-2023HYDRA CRANE11.1
1134UER-PKG-IHEOT10580210-08-2023HYDRA CRANE15.4
1134UER-PKG-IHEOT10580208-08-2023HYDRA CRANE11.4
1134UER-PKG-IHEOT10580205-08-2023HYDRA CRANE10.5

 

 

I need to build a visual similar as below:

mayankhginfra_0-1695023019994.png

 

1 ACCEPTED SOLUTION
mayankhginfra
Frequent Visitor

For any one who facing similar kind of issue.

 

I did solved it with the help of goupping in a disconnected table. You have to try different aggregations and BOOM its done.

View solution in original post

3 REPLIES 3
mayankhginfra
Frequent Visitor

For any one who facing similar kind of issue.

 

I did solved it with the help of goupping in a disconnected table. You have to try different aggregations and BOOM its done.

mayankhginfra
Frequent Visitor

FYI: I have created a measure to count distinct equipment where date range is between 1-10 and have also taken the average of Total_WH.

DistinctCount_Equipment =
COUNTROWS(
   
            SUMMARIZE(
                FILTER(
                    ZC_PM_EPR,
                    DAY(ZC_PM_EPR[Date]) >= 1 && DAY(ZC_PM_EPR[Date]) <= 10
                ),
                ZC_PM_EPR[Equipment_no],
                "Total_WH", DIVIDE(SUM(ZC_PM_EPR[Total_WH]), 10)
            )
   
)
 
 
major issue i am facing is to get X-axis as shown in visual above. Since we do not have any such column in table and also the table is based on per day data and I need to classify it on first 10 days of the month basis.

Hi, @mayankhginfra 

 

You can't put a measure on an X axis. Calculated columns can be added and used as X-axis.

 

Best Regards,

Community Support Team _Charlotte

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

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