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
kroman
Helper I
Helper I

DAX Studio not returning all results

Hi All

I have a table in a PBI Dataset with few hundreds thousands rows and one of the columns is "Clients" .

If I do 

 

EVALUATE  
  VAR JustClients = DISTINCT('MyTable'[Client]) 
Return JustClients

 

or

 

EVALUATE  
  VAR JustClients = Summarize('MyTable',  'MyTable'[Client])
Return JustClients 

 

in a DAX Studio, it returns 64 rows

But if I do the same in PowerAutomate flow or PBI Desktop - it returns over 4k rows (which is correct)
So the question is - why its not returning all the rows in DAX Studio?
Thanks

2 REPLIES 2
Dangar332
Super User
Super User

Hi, @kroman 

 

In first expression use calculatetable.

Means

EVALUATE  

  VAR JustClients = calculatetable(DISTINCT('MyTable'[Client]) )

Return JustClients

 

In your second query it give only unique value. 

Means assume you have 10 distinct clients id and in your data one client has 10 entry so your total entry is 100(100 rows)

When you use your second query in above data which contains 10 clients it give only 10 clients.

Because summarize give unique value 

 

Hope you get my point.

I think you may not be getting my point 
The issue is that same query gives different results in PowerAutomate flow and DAX Studion

Those 2 queries gives same results if running in PowerAutomate (4926 rows) but completly different if running in DAX Studion (64 rows for each of those 2 queries) 

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.