Forum Discussion

BPrivitera's avatar
BPrivitera
Frequent Visitor
7 years ago

Combine filter results into one visualisation

Fellow Power BI'ers,

 

Our users have a requirement for a lot of ad hoc type reporting.  This will be of the type ...

Retrieve Sales data where FIELD_A = 'ABC' AND FIELD_B = 'XYZ'

 

There is no (or usually none) relationship between FIELD_A and FIELD_B.  Results are usually mutuall exclusive.

 

It's like ... give me all sales for Persons over 50 years of age  AND  for Persons who ride a skateboard (Usually mutually exclusive).

 

We can get the users to write measures for each condition which look like this  (need to wrap a MIN() around the fields as we  source from an Analysis Services database (Tabular) with a live connection and don't have access to data fields that aren't measures)  ...  

 

M_Incl_10 = IF(LEFT(MIN(Trans[Promo]),3) = "G81" || LEFT(MIN(Trans[CtrlID]),2) = "F9" , 1, 0)

 

Which mostly works, however again, since we source from SSAS, the data isn't always accurate (not sure why but it depends on what fields we choose in the visualisation).

 

Yes, we could write a bunch of measures in the Tabular Model, however this requires interaction from the BI team as the users don't have access to the model itself (and nor do we want to give it),

 

As such, is there any other way to achieve this goal in Power BI against a SSAS Tabular Model live connection where we could empower the users to perform these ad hoc queries themselves.

 

Any help very much appreciated.

 

Regards

Basil

5 Replies

  • Hey Basil,

    I'm wondering if you already have looked at the feature called "Cross Highlight", it has been released with Power BI Desktop in February, and it's not a feature that one can turn on and off, but it's more like a "behavior".

     

    You will find a description in the video for the February 2018 release:

    https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-february-2018-feature-summary/#crosshighlight

     

    This feature may not supported by all custom visuals until now.

     

    Regards,
    Tom

     

     

    • BPrivitera's avatar
      BPrivitera
      Frequent Visitor

      Tom,

       

      At first glance, it certainly looks promising.

       

      I'll check it and and get back to you.  Thanks for the quick reply.

       

      Cheers

      Basil

      • BPrivitera's avatar
        BPrivitera
        Frequent Visitor

        Tom,

        Thanks again for your reply.

        Mmmm, not quite.  Still suffers the same issues as the previous methods I've tried (though will be good for another couple of scenarios we have), It still depends on what fields you choose in the visualisation (usually just a table) as to results (records) are actually shown.

        Regards

        Basil