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.
Hi everyone!
I have a column with prices, and another column and another table with the acronyms C and D. That are Credit or Debit.
Tables are linked by a unique ID between them.
I need to turn prices to negative, when the acronym is D.
I am using SQL Server Analysis Services Tabular, how could I do this with DAX?
Solved! Go to Solution.
Hi ralsouza,
Create a calculate column in table Toyota - Valores using DAX below:
Conditional Prices = IF ( RELATED ( 'Toyota - Lancamentos'[tipolancto] ) = "D", - [Valor Toyota], [Valor Toyota] )
Regards,
Jimmy Tao
Hi ralsouza,
Create a calculate column in table Toyota - Valores using DAX below:
Conditional Prices = IF ( RELATED ( 'Toyota - Lancamentos'[tipolancto] ) = "D", - [Valor Toyota], [Valor Toyota] )
Regards,
Jimmy Tao
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
99 | |
86 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |