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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
jharris32
Frequent Visitor

Fixed function Tableau to Power BI DAX help!

I need to convert this fixed LOD in tableau to DAX, can anyone help?

 

{ FIXED [Matter/Case ID# (GAL Permanency Goals)]:COUNT([Permanency Goal])}

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @jharris32 ,

 

 

Here are the steps you can follow:

 

1. Create measure.

Average Permanency Goals Per Case =
AVERAGEX(
    FILTER(ALL('Table'),
    'Table'[Close Reason]=MAX('Table'[Close Reason])),[Total Permanency Goals (the measure from above)])

2. Select [Measure] – Measure tools – Set the decimal point

vyangliumsft_0-1705908112872.png

3. Result:

vyangliumsft_1-1705908112874.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

4 REPLIES 4
v-yangliu-msft
Community Support
Community Support

Hi  @jharris32 ,

 

 

Here are the steps you can follow:

 

1. Create measure.

Average Permanency Goals Per Case =
AVERAGEX(
    FILTER(ALL('Table'),
    'Table'[Close Reason]=MAX('Table'[Close Reason])),[Total Permanency Goals (the measure from above)])

2. Select [Measure] – Measure tools – Set the decimal point

vyangliumsft_0-1705908112872.png

3. Result:

vyangliumsft_1-1705908112874.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

v-yangliu-msft
Community Support
Community Support

Hi  @jharris32 ,

I created some data:

vyangliumsft_0-1705560934383.png

 

Are you referring to the de-duplication counts for [Permanency Goal] grouped by [Matter/Case ID] in the table?

Here are the steps you can follow:

1. Create measure.

Measure =
CALCULATE(
    DISTINCTCOUNT(
        'Table'[Permanency Goal]),
        FILTER(ALL('Table'),
        'Table'[Matter/Case ID]=MAX('Table'[Matter/Case ID])))

2. Result:

vyangliumsft_1-1705560934384.png

If it doesn't meet your desired outcome, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

This is exactly what I'm looking for, it worked perfectly - thank you! 

 

Part 2 to this one - If I want to then calculate the average number of permanency goals per case based on the close reason, is that possible? 

 

Below is what I'm trying to get to. So the top chart would be what I have with the formula you provided and then the bottom (in red) is what I need a DAX formula for.  

 

Matter/Case IDTotal Permanency Goals (the measure from above)Close Reason
x2AD
y3GU
z2REU
a1REU
b4GU
c1AD
   
   
Close ReasonAverage Permanency Goals Per Case 
AD1.5 
GU3.5 
REU1.5 

 

THANKS!

ryan_mayu
Super User
Super User

could you pls provide some sample data and expected output?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.