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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
felipesaw
Frequent Visitor

Dax measure challenge

Hi friends, i need a solution in power query or dax to made this measure (column or dax)

 

I have a base with values ​​per month and that has the month of that database.

 

I have a filter by the month of the database and I need to do the calculation below.

 

Months left in the case of this example would be 8, which is from April to December.

 

and difference average is the difference between the average of the monthdatabase of April and March

 

coddatevalueMonthdatabaseMEASURE
a01/01/2023100001/03/2023=AVERAGEX(C2:C12
a01/02/2023100001/03/2023=AVERAGEX(C2:C12
a01/03/2023100001/03/2023=AVERAGEX(C2:C12
a01/04/2023100001/03/2023=AVERAGEX(C2:C12
a01/05/2023100001/03/2023=AVERAGEX(C2:C12
a01/06/2023100001/03/2023=AVERAGEX(C2:C12
a01/07/2023100001/03/2023=AVERAGEX(C2:C12
a01/08/2023100001/03/2023=AVERAGEX(C2:C12
a01/09/2023100001/03/2023=AVERAGEX(C2:C12
a01/10/2023100001/03/2023=AVERAGEX(C2:C12
a01/11/2023100001/03/2023=AVERAGEX(C2:C12
a01/12/2023100001/03/2023=AVERAGEX(C2:C12
     
a01/01/2023100001/04/2023=MÉDIA(C15:C17)
a01/02/2023100001/04/2023=MÉDIA(C15:C17)
a01/03/2023100001/04/2023=MÉDIA(C15:C17)
a01/04/2023200001/04/2023=(AVERAGE DIFFERENCE / REMAINING MONTHS ) + AVERAGE(C15:C26)
a01/05/2023200001/04/2023=VALUE ABOVE (APRIL VALUE)
a01/06/2023200001/04/2023=VALUE ABOVE (APRIL VALUE)
a01/07/2023200001/04/2023=VALUE ABOVE (APRIL VALUE)
a01/08/2023200001/04/2023=VALUE ABOVE (APRIL VALUE)
a01/09/2023200001/04/2023=VALUE ABOVE (APRIL VALUE)
a01/10/2023200001/04/2023=VALUE ABOVE (APRIL VALUE)
a01/11/2023200001/04/2023=VALUE ABOVE (APRIL VALUE)
a01/12/2023200001/04/2023=VALUE ABOVE (APRIL VALUE)
1 REPLY 1
Anonymous
Not applicable

Hi @felipesaw 

1. AVERAGEX(C2:C12 => You want to average the value from 01/01/2023 to 12/01/2023 ? So the result is 1000 ?

2. MÉDIA(C15:C17) => Count the medium between 01/01/2023 and  03/01/2023 ?  So the result is 1000 ?

3. (AVERAGE DIFFERENCE / REMAINING MONTHS ) + AVERAGE(C15:C26 => What is the difference ? Can you explain it with a data sample ?

4. VALUE ABOVE (APRIL VALUE)=> For example ?

 

Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.