Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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")
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 63 | |
| 30 | |
| 30 | |
| 23 |