cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ryand09 Regular Visitor
Regular Visitor

Dax and DAX studio question

Hello

I’m fairly new to DAX and have a two part question

  1. In the following function Dates and Periods are tables. What do they actually bring / do in the function as the 2 filters at the end of Calculate?

CALCULATE (

    COUNTX (

        'Employees',

        IF (

            ‘tblEmployees’[FTE] = "Yes" && ‘tblEmployees’[Curr_Emp] = "Yes",1)),

    USERELATIONSHIP (‘tblEmployees’[Start_Date], Dates[Date_Value] ), Dates, Periods)

 

  1. How do I run the function in DAX studio? I can use EVALUATE ‘tblEmployees’ to return the entire Employees table, but I can’t seem to figure how to test functions?

Many thanks in advance

Roy

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Dax and DAX studio question

You need the row function as I explain at the bottom of this article. 

https://exceleratorbi.com.au/getting-started-dax-studio/



* Matt is a Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

View solution in original post

3 REPLIES 3

Re: Dax and DAX studio question

You need the row function as I explain at the bottom of this article. 

https://exceleratorbi.com.au/getting-started-dax-studio/



* Matt is a Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

View solution in original post

Microsoft v-jiascu-msft
Microsoft

Re: Dax and DAX studio question

Hi @ryand09,

 

To me, I would test the DAX formula in the Power BI Desktop or in the Excel with a model. That would be clearer.

Maybe this formula won't give you the result you want. Can you share a sample and the expected result?

 

Best Regards,

Dale

 

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
ryand09 Regular Visitor
Regular Visitor

Re: Dax and DAX studio question

Really good article for DAX Studio beginners.

 

Many thanks/

Helpful resources

Announcements
Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors