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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
adamfingol
Regular Visitor

Gerar relatorio com trigger

Ola tenho uma tabela de registros de falha e uma tabela de trigger por falha. Eu quero gerar uma visualização onde só apeça na lista quando o registro apareça a quantidade de vezes marcado na lista na tabela de trigger.

 

ao usar o comando

Medida = if((Values(Logs[Mnemonic] ) = VALUES(Th_Falhas[falha])) ; [TH] ; "False" )
 
quando Logs[Mnemonic] é diferente ao h_Falhas[falha] da erro.
1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @adamfingol 

Sample data and expected output would help tremendously. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

And if these two tables have created the relationship?

if you may try this measure

Medida = if((SELECTEDVALUE(Logs[Mnemonic] ) =SELECTEDVALUE(Th_Falhas[falha])) ; [TH] ; "False" )

 

Best Regards,

Lin

 

 

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

View solution in original post

4 REPLIES 4
v-lili6-msft
Community Support
Community Support

hi, @adamfingol 

Sample data and expected output would help tremendously. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

And if these two tables have created the relationship?

if you may try this measure

Medida = if((SELECTEDVALUE(Logs[Mnemonic] ) =SELECTEDVALUE(Th_Falhas[falha])) ; [TH] ; "False" )

 

Best Regards,

Lin

 

 

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

Tankyou, work perfect.

 

One more question, Why your comands work and my no, this is Dax or Language M?

I need study more i need tips witch i start study DAX or Language M or other?

Tankyou!

hi, @adamfingol 

Values returns a table, so for two tables, it doesn't work.

For power bi, you need to study DAX or M Language first.

http://radacad.com/m-or-dax-that-is-the-question

 

Best Regards,

Lin

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

Tanks you are the best!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.