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

I have implemented bellow logic in tableau. I need same to be implements in power bi please help me.

IF [Opened by] = [Closed by] AND DATE([Opened])= DATE([Closed]) AND [SA AGENT CLOSE] = "SA" THEN 1 ELSE 0 END
4 REPLIES 4
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

Have you solved your problem?

 

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you still need help, please share your data sample and your desired output so that we could help further on it.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

 

 

{ FIXED [Repeating Complaints],DATEPART('year',
[Date Received by HCL]):
COUNTD([1st Policy Number])}

hi @Anonymous

 

A general rule for converting Tableau FIXED level of detail expressions to DAX is:

This expression in Tableau:

{ FIXED: [Col1], [Col2]... : [Measure] }

 

is equivalent to this expression in DAX:

CALCULATE (
    [Measure],
    ALL ( FactTable ),
    SUMMARIZE ( FactTable, SomeTable[Col1], SomeTable[Col2]... )
)

 

This pattern requires all the columns referenced to be physical columns, so you will need to add some sort of Year column to your table before writing the expression. The result should be something like this (I'm assuming all your columns are in the table YourTable):

 

CALCULATE (
    DISTINCTCOUNT ( YourTable[1st Policy Number] ),
    ALL ( YourTable ),
    SUMMARIZE (
        YourTable,
        YourTable[Year],
        YourTable[Date Received by HCL]
    )
)

Are you able to get this pattern to work?

 

Regards,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

If it is convenient, please share your data sample and your desired output in Power BI so that I can understand your scenario better and get the solution.

 

Best regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.