Quantcast
Channel: Service topics
Viewing all articles
Browse latest Browse all 62548

Create filter based on filtered dataset result AND use filtered value as a constant in measure

$
0
0

Hi guys!

 

With this link you can download my dummy dataset:

https://www.dropbox.com/s/rh27eu9rvhbs1hg/DUMMY.xlsx?dl=0

 

I have a huge dataset, and this Excel file represents the structure of it. So I have an ID column, and two other values column ("RAW_DATA" sheet). This dataset is in an SQL table, and my BI reports are connected to it via DirectQuery.

 

The consumer of the report chooses the ID in a slicer. This way e.g. a line chart appears that contains only the values which have the selected ID. Easy so far. But I want to be able to give my users the opportunity to choose from the selected ID-s X value also! I want to create a slicer for these X values, and of course this slicer should contain only those X values which are determined by the choosen ID value. Sounds like an easy task, and maybe I am missing something... but I cannot solve this problem. BI wants load every X value in that slicer (which is impossible, because I have millions of X values...).

 

Once we are able to achieve this, we can move on to our next problem 🙂 

 

When the user selected the X value, I have to use that selected X value as a constant in other calculations... In my attached Excel file you can see a simplified version of the calculation on the "SELECTED_DATA" sheet. So basically the question is how to use the selected value of a slicer as variable in other formulas. These formulas I have to do in a measure (because I am using DirectQuery - therefore I cannot use computed columns)... But the question is: How? 

 

And the cherry on top: as you can see in the attached Excel my calculations are rolling... so they are always dependent on the values which are smaller than the current value...  I you have any ideas for this, please dont hold back 🙂

 

Thanks!


Viewing all articles
Browse latest Browse all 62548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>