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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
krista_003
Frequent Visitor

Actual vs. Target: line values fluctuating

Hello Power BI enthusiasts, 

Since I'm running ouf ideas, perhaps you may be able to help me. 

I've two following tabbles:  
Actual vs Target.png
I'm using the "Line and clustered column chart" to visualize Actual QTY vs Target QTY.  As you may have noticed targets are set for whole year and I think this is causing me a trouble.  

I've created the following meaasure to visualize the Monthly Target QTY:
Monthly target QTY= SUM (Targets[Target QTY]) /12 

I'm using Monthly target QTY as "Line value" which is should be constant number: 
2020:  980/12 =81,6
2021: 761/12 =63,4 

However my line value is fluctuating, while it should be constant. Does anyone has an idea how to fix it? 

krista_003_0-1612436549180.png

 

pbix. file: http://ge.tt/729TErA3 

6 REPLIES 6
Pragati11
Super User
Super User

Hi @krista_003 ,

 

Can you try modifying your calculation as follows and see if this works:

Monthly target QTY= CALCULATE(SUM (Targets[Target QTY]) / 12, FILTER(ALL(Targets)) )

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Hi @Pragati11 

The following error pops up: 

krista_003_0-1612439342920.png

 

Hi @krista_003 ,

 

Try removing FILTER expression and try following:

Monthly target QTY= CALCULATE(SUM(Targets[Target QTY]) / 12,  ALL(Targets))

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Hej @Pragati11 ,

Unfortunately, the line is still fluctuating...Monthly target.png

As well as, the monthly target is incorrect..it should be 81,6...

Hi @krista_003 ,

 

On what column are these 2 tables related?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Hej @Pragati11 , 

I've releated those two columns on "contact"
contact.png

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors