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

convertir este pbi exp

Hola a todos

Quiero que esto se convierta en pbi exp. cómo crear esto como medida.

if(Data_Source'GORA',sum(Number_Of_Seats),count(Number_Of_Seats))
1 REPLY 1
v-diye-msft
Community Support
Community Support

Hola @Chanty4u

Rara vez juzgamos el nombre de la tabla en la función IF en power bi, pero si desea calcular en función del nombre de la tabla, puede crear una nueva tabla que enumera todos los nombres de tabla y escribir algo como esto:

Suponiendo que haya tablas A,B,C 3. nos gustaría calcular cuando seleccionamos B:

if(selectedvalue(Tablelist(column))-"B",sum('B'(Number_Of_Seats)),count('B'(Number_Of_Seats)))

Puede encontrar más referencia aquí sobre la conversión de SQL a DAX:

https://www.sqlbi.com/articles/from-sql-to-dax-projection/

Community Support Team _ Dina Ye
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.