Reply
nataliesmiy1357
Helper IV
Helper IV
Partially syndicated - Outbound

Gap of Data not working

Hello!  My gap/difference measure isn't working correctly.  

 

This is my raw data:

nataliesmiy1357_0-1726511195500.png

My page is bringing in the average per Line (so taking the average of shift 1 and 2) 

 

I have a GAP of OR forumla that is: 

Gap of OR = 'OR Report'[Line Result]  - 'OR Report'[Planned OR%]
 
But when I bring that Gap value into a graph, this is what I get:
 
nataliesmiy1357_1-1726511449861.png

But the average of Line Result  ( 98.2 + 97.2 + 95.8 /3 = 97.07) and the planned result = 96, so the difference/gap SHOULD be 97.07-96 = 1.07

 

What am I doing wrong?

 
7 REPLIES 7
v-stephen-msft
Community Support
Community Support

 Hi @nataliesmiy1357 ,

 

I tried to reproduced it but failed. I used AVERAGE function. Here's the results. My Line Result and Planned OR% are both columns.

vstephenmsft_0-1728285360674.png

 

Please provide us with more detailed information, thanks.

 

Best Regards,

Stephen Tao

 

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

 

lbendlin
Super User
Super User

Syndicated - Outbound
and the planned result = 96

well, not exactly.  it is 96*5/6 = 80.  Hence the difference is 17.07% rather than 1.07%

Syndicated - Outbound

That makes sense - so how can I create the DAX to not consider the null/N/a values?  So taking the average of the actual data:  96*5 / 5 actual values.

Syndicated - Outbound

So you would filter out the associated 98.2% line result as well?

Syndicated - Outbound

No - I would want that included.

Syndicated - Outbound

I feared as much.  I would call that "lying to one self". Can't/won't help you with that.

Syndicated - Outbound

okay.... what if I don't include it?

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)