Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Selection between two dates

Hi there, I have a Fact table with client mutations, with eacht mutation having a StartDate and an EndDate. There is a separate Date dimension table. I am working with an SSAS Cube, Visual studio ...
  • sturlaws's avatar
    sturlaws
    6 years ago

    By VS 2017 it seems like you are refering to Visual studio, is that correct? Which version of VS you have should not matter, but you need to check the version of your SSAS installation: 

     

    to check the SSAS version go to SSMS -- connect to SSAS instance --> reports -> standard reports --> General and there would be the version for you

     

    But perhaps more important , it does not work in direct query:
    https://community.powerbi.com/t5/Desktop/SELECTEDVALUE-not-a-valid-function/td-p/270639

    you can rewrite by using the hasonevalue-function