Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello, i have a question
as i know calculate will over ride any filter in context, so why am getting blank values, why it is not showing same values everywhere, thanks
Solved! Go to Solution.
Hi, @chahineatallah
I'd like to suggest you use 'ALL(Table)' or 'ALLSELECTED(Table)' in 'Filter'. I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
You may create a measure like below.
Result =
CALCULATE(
SUM('Table'[Value]),
FILTER(
ALLSELECTED('Table'),
'Table'[Class]="c1"
)
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @chahineatallah
I'd like to suggest you use 'ALL(Table)' or 'ALLSELECTED(Table)' in 'Filter'. I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
You may create a measure like below.
Result =
CALCULATE(
SUM('Table'[Value]),
FILTER(
ALLSELECTED('Table'),
'Table'[Class]="c1"
)
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
This is because you are using the FILTER() function as well. With this function you limit the calculation of quantity sold to only "portland". If you leave out the FILTER() it will calculate the portland quantity for all rows. example:
SalesExample = CALCULATE([Revenue], DimReseller[Reseller] = "a bike store")
Hope that clarifies!
Best regards,
Tim
Proud to be a Super User!
@chahineatallah , for same value remove filter and try measure like
calculate([quantity sold] , region[sales_..] ="Portland")
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
145 | |
85 | |
66 | |
52 | |
48 |
User | Count |
---|---|
215 | |
90 | |
83 | |
67 | |
59 |