- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Calculate delta filtering 2 times on a column that has a possible versions in it
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-06-2019 11:24 PM
Hello,
I have a dataset 'Source' that has several variables such as KPI name, period and the value and also a version. I want to compare 2 versions and show the delta between them by have 2 filters in the top to select a version.
I have loaded the source and then created 2 other tables with all possible versions:
I have managed to create both filters and have independent visuals to show the values of the filter, but the delta is not possible:
No. 1: Using measures like
the delta is calculated but I want to be able to filter also on, KPI name, month and year and that is not possible this way.
No. 2: Using measures like
the visuals show the correct figure but the delta is not calculated.
Included pbix:
Any ideas?
Solved! Go to Solution.
Accepted Solutions
Re: Calculate delta filtering 2 times on a column that has a possible versions in it
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-07-2019 10:11 PM
Hi @MartijnNL,
Try this one, please. We only need to clear the unwanted filters.
Measure = CALCULATE ( SUM ( Source[Waarde] ), ALL ( SecondVersion ) ) - CALCULATE ( SUM ( Source[Waarde] ), ALL ( MainVersion ) )
Best Regards,
Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
All Replies
Re: Calculate delta filtering 2 times on a column that has a possible versions in it
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-07-2019 10:11 PM
Hi @MartijnNL,
Try this one, please. We only need to clear the unwanted filters.
Measure = CALCULATE ( SUM ( Source[Waarde] ), ALL ( SecondVersion ) ) - CALCULATE ( SUM ( Source[Waarde] ), ALL ( MainVersion ) )
Best Regards,
Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Re: Calculate delta filtering 2 times on a column that has a possible versions in it
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-07-2019 10:58 PM
@v-jiascu-msft Thank you this is exactly what I was looking for. The measure seems to be so simple I will study the ALL functions a bit more to understand how to use them in the future. Thanks again.