Reply
Edgar_massa
Helper II
Helper II
Partially syndicated - Outbound

Average with ALL()

Good night sir,

I'm trying to create a measure to bring the value repeatedly, using the ALL function, I created a virtual table and I saw that it works more in the measure it doesn't work, could someone give me a solution?

 

measure

Edgar_massa_0-1665177517217.png

 

 

visual in which I want it to repeat the number for all lines

Edgar_massa_2-1665177590971.png

 

table that I created to validate and it worked

Edgar_massa_3-1665177653835.png

 

1 ACCEPTED SOLUTION

Syndicated - Outbound

I invite you to watch these videos to better understand 😉

https://www.youtube.com/watch?v=lMuDz6ViU1w

https://www.youtube.com/watch?v=lX2ztEh3tuA

https://www.youtube.com/watch?v=Nm9x83J-SBk

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

View solution in original post

16 REPLIES 16
avatar user
Anonymous
Not applicable

Syndicated - Outbound

Hi @Edgar_massa ,

Could you please provide more details with your desired output and pbix file without privacy inforamtion?

 

How to Get Your Question Answered Quickly 

 

Best Regards

Community Support Team _ Polly

 

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

aj1973
Community Champion
Community Champion

Syndicated - Outbound

Hi @Edgar_massa 

in your VAR _avg = CALCULATE(AVARAGEX(tf,[X]) , ALL())

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Syndicated - Outbound

Did not work.

 

Edgar_massa_0-1665244759911.png

 

Edgar_massa_1-1665244774603.png

 

What can it be?

 

 

Syndicated - Outbound

Please add tf in ALL(tf)

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Syndicated - Outbound

@aj1973 

 

Did not work

 

Edgar_massa_0-1665402747668.png

 

Syndicated - Outbound

Is it possibe you share your PBIX please?

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Syndicated - Outbound

Is this what you want to see?

aj1973_0-1665408275405.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Syndicated - Outbound

@aj1973 

Yes, but I want it within the measure

Syndicated - Outbound

Sorry I don't understand your request. But if you need to see the avg inside your visual you will need to link your tables

aj1973_0-1665410210215.png

Or show me the outcome you want to see

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Syndicated - Outbound

I created the virtual table to simulate and see if the value was correct, but I want to get only the avg_ variable within a measure for my visual, I don't want to create a virtual table to relate, understand?

 

Same in the print below

 

Edgar_massa_0-1665410705778.png

 

the result I want is this but within a measure

Edgar_massa_1-1665410809673.png

 

 

bringing the result equal to the column you asked if it was like I wanted

 

 

Syndicated - Outbound

Add a new measure

aj1973_0-1665414511486.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Syndicated - Outbound

excellent bro

But why can't I do the last calculate with the all there in the variables?

Syndicated - Outbound

I invite you to watch these videos to better understand 😉

https://www.youtube.com/watch?v=lMuDz6ViU1w

https://www.youtube.com/watch?v=lX2ztEh3tuA

https://www.youtube.com/watch?v=Nm9x83J-SBk

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Syndicated - Outbound

I watched the videos, I understood the issue of the context filter and line filter, but I don't know if I understood it right in my case, if it's because the variable is constant, but anyway..

Thanks a lot for the help

Syndicated - Outbound

Sometimes DAX is a bit complex to understand that's why i sometimes take things for granted 😁

 

Welcome

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

avatar user

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

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