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

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
tgvrreddy Regular Visitor
Regular Visitor

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

 

 

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

Community Support Team
Community Support Team

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

Hi @tgvrreddy,

 

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.
OwenAuger Super Contributor
Super Contributor

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

hi @tgvrreddy

 

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



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

Proud to be a Datanaut!




Community Support Team
Community Support Team

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

Hi @tgvrreddy,

 

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.

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 110 members 1,477 guests
Please welcome our newest community members: