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
azakir
Resolver I
Resolver I

Enter measure values for missing months

Hi Guys. 

I've got my main table connected with date table. The main table has a column that calculates the Sum of Recycled by month. The data is only till August 2023. I would like to somehow display in a table visual the values till August 2023, and for months after August, the average of values till August 2023.

So basically, from Sep-Dec, just show the average:

 

azakir_0-1697699019358.png

 

1 ACCEPTED SOLUTION

Hi, @azakir 

 

You can try the following methods.

Measure 2 = 
Var _aver=DIVIDE(CALCULATE(SUM('Table'[Value]),ALL('Table')),8)
Return
IF([Measure]=BLANK(),_aver,[Measure])

vzhangti_0-1698138768580.png

Is this the result you expect?

 

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.

View solution in original post

6 REPLIES 6
Idrissshatila
Super User
Super User

Hello @azakir ,

 

can you paste both measures here

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote for my Community Mobile App Idea 💡

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Average Recycle/Reuse =
SUM(Water[TOTAL - Recycled and Reused [kL]]]) / 8

Helllo @azakir ,

 

so use this formula instead of the main measure in the table

 

new measure = 
var main = SUM(Water[TOTAL - Recycled and Reused [kL]]]) / 8
var AvgRecycle/Reuse = SUM(Water[TOTAL - Recycled and Reused [kL]]]) / 8
return
if( main = blank(), AvgRecycle/Reuse, main)

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote for my Community Mobile App Idea 💡



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Hi @Idrissshatila Thanks for your reply, but that didn't help: 

azakir_0-1697703941177.png

 

Hi, @azakir 

 

You can try the following methods.

Measure 2 = 
Var _aver=DIVIDE(CALCULATE(SUM('Table'[Value]),ALL('Table')),8)
Return
IF([Measure]=BLANK(),_aver,[Measure])

vzhangti_0-1698138768580.png

Is this the result you expect?

 

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.

Hi @v-zhangti This did the trick. Thank you so much for that. 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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