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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors