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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
sbuster
Helper I
Helper I

Minx returning blank row

I'm trying to understand why the following DAX expression executed in DAX Studio returns a blank rows.  I don't see an explanation in the documentation about this.  I'd prefer not to have any rows returned vs a blank one.

 

DEFINE
    table t = {(1)}
    var _filter = filter(t,[Value]>1)
     evaluate {
        Calculate(
            Minx(_filter,[Value]))
    }

 

Furthermore, why this expression returns 1?  I thought Calculate applied the filter prior to the expression.

 DEFINE
    table t = {(1)}
    var _filter = filter(t,[Value]>1)
    
    evaluate {
        Calculate(
            Minx(t,[Value]),
            filter(t,[Value]>1)
        )
    }

1 ACCEPTED SOLUTION

Hey @sbuster ,

 

as you figured out DAX Studio will show at least one row.

It is blank because the result returns a blank table.

 

Your second example returns also blank for me. Can you double check if it returns 1 for you?

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic

View solution in original post

3 REPLIES 3
sbuster
Helper I
Helper I

I disccovered DAX Studio is returning a single row because I'm using the table constructor with no value, which will produce a single row with no value...

 

 

Hey @sbuster ,

 

as you figured out DAX Studio will show at least one row.

It is blank because the result returns a blank table.

 

Your second example returns also blank for me. Can you double check if it returns 1 for you?

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic

The second example definitely returns 1 for me.  My assumption in the second example is that Calculate will call the filter function, which has argument t, first.  Then it will call Minx, which I do have as the first argument hte original table t.  How would the filtered table (the result of the filter funciton within Calculate) be passed into the Minx function?  

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.