The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi everyone,
I struggle with the problem.
I need to apply calcultion of this card to a table below. Every row should get the same value as from card.
Somehow It's not working, there is still applying context to each row.
my measures:
Solved! Go to Solution.
Hi @Anonymous ,
Try this measure
YTD Average Delay =
CALCULATE (
TOTALYTD ( AVERAGE ( 'Table1'[Delayed Days] ), 'Date Created'[Date] ),
ALLSELECTED ( 'Table1' )
)
The ALLSELECTED function gets the context that represents all rows and columns in the query, while keeping explicit filters and contexts other than row and column filters. This function can be used to obtain visual totals in queries.
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.
Hi @Anonymous ,
Try this measure
YTD Average Delay =
CALCULATE (
TOTALYTD ( AVERAGE ( 'Table1'[Delayed Days] ), 'Date Created'[Date] ),
ALLSELECTED ( 'Table1' )
)
The ALLSELECTED function gets the context that represents all rows and columns in the query, while keeping explicit filters and contexts other than row and column filters. This function can be used to obtain visual totals in queries.
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.
Hi @Anonymous
try this:
YTD Average Delay = calculate(TOTALYTD(AVERAGE('Table1'[Delayed Days]),'Date Created'[Date]),REMOVEFILTERS([Customer Country]))
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
80 | |
72 | |
49 | |
40 |
User | Count |
---|---|
139 | |
119 | |
74 | |
64 | |
63 |