Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
MarcoDekker
Helper I
Helper I

How to mimic a sql IN query using powerbi on a SSAS cube

Hi all.

i am trying to mimic some kind of set filtering. In sql is is very easy, but i am using a SSAS cube.
I would like to mimic this in powerbi


In the below query, i first determine which customers have an aggregated sales amount of over 1000. Then just for those customers, i need to list their name and country

select CustomerID, CustomerName, CustomerCountry
from CustomerTable
where customerID in ( select customerID
                                    from SalesTable
                                    group by CustomerID
                                    having sum(SalesAmount) > 1000

                                   )

How to achieve this?

4 REPLIES 4
MarcoDekker
Helper I
Helper I

Anybody with an alternative aproach?

Nobody? Simply not possible?

Tahreem24
Super User
Super User

@MarcoDekker  Create a new table using SUMMERIZE

New Table = SUMMERIZE(Table, Table[CustomerID],Table[CustomerName],Table[CustomerCountry],"Amount" SUM(SalesAmount)>1000))

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Hi @Tahreem24 . Thanks for this suggestion.

We use a SSAS cube provided by a supplier. I can use Dax allright when creating measures in a PBI report, but no columss or tables. So i am unable to use the summerize feature.

regards, Marco

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.