Forum Discussion
Using table as filter in power bi
- 9 years ago
Well, it works well for me based on the sample data you provided.
You can check the desktop file I created with your data and compare to yours.
https://superfarb.com/wp-content/uploads/2017/07/Levels.pbix_.zip
Ziv Himmelfarb
If you want to show Amount by Lev1,
the measure will simple be =SUM(Amount).
You don't even have to create a measure for it, just create a visual with tLevels[Lev1] and tSales[Amount]
and make sure the aggregation used for tSales[Amount] is SUM.
The problem with the measure you've created is that CALCULATE changes the context filter for the fields you are filtering by
(in this case tLevels[Lev1]). The second argument to CALCULATE is a flter. You just used tLevels[Lev1] as a filter,
which always returns TRUE, therefore all values are the same.
I hope that helps.
Ziv Himmelfarb
Thanks for the comments. I actually tried to put up a table visual without any measures before posting this question. It returns even more strange result:
My table relationship looks like:
It doesn't help if Cross filter direction is Both or Single.
- zivhimmel9 years agoResolver I
Any page level or report level filters in use?
- gvg9 years agoPost Prodigy
No.
- zivhimmel9 years agoResolver I
Well, it works well for me based on the sample data you provided.
You can check the desktop file I created with your data and compare to yours.
https://superfarb.com/wp-content/uploads/2017/07/Levels.pbix_.zip
Ziv Himmelfarb