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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Transferir lógica de DAX a lógica de Power Query

Hola a todos, esta es probablemente una solución bastante fácil, pero no puedo entenderlo. ¿Cómo puedo tomar la lógica de la expresión DAX siguiente y aplicarla en power query?

Status =
IF (
    ISBLANK ( 'Table1'[Complete Date] ),
    IF ( 'Table1'[Due Date] < TODAY (), "Overdue", "Open" ),
    IF (
        'Table1'[Complete Date] > 'Table1'[Due Date],
        "Closed - Delayed",
        "Closed - On Time"
    )
)

Gracias de antemano

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

@CaveOfWonders

Agregar una columna personalizada en PQ:

if  [Complete Date] = null then
    if [Due Date] <  Date.From(DateTime.LocalNow()) then "Overdue" else "Open" else
    if [Complete Date] > [Due Date] then
        "Closed - Delayed" else    "Closed - On Time"

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Gracias 🙂

Syndicate_Admin
Administrator
Administrator

@CaveOfWonders

Agregar una columna personalizada en PQ:

if  [Complete Date] = null then
    if [Due Date] <  Date.From(DateTime.LocalNow()) then "Overdue" else "Open" else
    if [Complete Date] > [Due Date] then
        "Closed - Delayed" else    "Closed - On Time"

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.