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
Anonymous
Not applicable

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

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

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



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

View solution in original post

3 REPLIES 3
v-jiascu-msft
Employee
Employee

Hi @Anonymous,

 

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.

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

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



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
Anonymous
Not applicable

Really good article for DAX Studio beginners.

 

Many thanks/

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.