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

Cláusula SUM Where en diferentes tablas

Hola

Necesito crear una nueva medida con mi tabla 'comp_spend' en la que suma el valor total en función de si una bandera = 'Y' en 3 tablas diferentes.

Ejemplo de lógica que estoy tratando de lograr:

Total_value_removed = calculate(sum(comp_spend[comp_value]), 'app_new'[remove_flag]="Y" O 'app_old'[remove_flag]="Y" O 'app_changed'[remove_flag]="Y")))

Las 3 mesas app_new, app_old y app_changed se han unido a la mesa comp_spend .

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

Debería poder cambiar el quirófano a ||

Total_value_removed =
CALCULATE (
    SUM ( comp_spend[comp_value] ),
    'app_new'[remove_flag] = "Y"
        || 'app_old'[remove_flag] = "Y"
        || 'app_changed'[remove_flag] = "Y"
)

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.

Top Solution Authors
Top Kudoed Authors