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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Daniel_B
Helper II
Helper II

Average of specific months or remove values from date Axis where data shouldn't be

Hello

 

My question is 2 fold as I would like to both try and know both solutions for future endeavours

 

So... I have data which I want to compare quarterly however 1 data set only has a certain number of months per quarter and with the average measure I have built it is filling in quarters that do not exist with an average that are not correct so I would like to know the following

 

1. How do I create an average of values from 1 column based on the month they are in?

2. How do I suppress data where data should not be visible i.e. if quarter 2 has no data it should show as 0 and not pick up the previous quarter of data 

 

Thanks

 

1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @Daniel_B ,

According to ypur description, I made a table like this:

oo3.PNG

And, I created a measure like this:

Avg. = 
VAR x=
CALCULATE(
    AVERAGE([Values]),
    ALLEXCEPT(
        Sheet7,
        Sheet7[Quarter]
    )
)
RETURN
IF(
    x = BLANK(),
    0,
    x
)

oo4.PNG

 

Best regards,
Lionel Chen

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

1 REPLY 1
v-lionel-msft
Community Support
Community Support

Hi @Daniel_B ,

According to ypur description, I made a table like this:

oo3.PNG

And, I created a measure like this:

Avg. = 
VAR x=
CALCULATE(
    AVERAGE([Values]),
    ALLEXCEPT(
        Sheet7,
        Sheet7[Quarter]
    )
)
RETURN
IF(
    x = BLANK(),
    0,
    x
)

oo4.PNG

 

Best regards,
Lionel Chen

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors