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 all,
I am relatively new and hope you guys can help me out with how to do this in DAX I want a column Amount filled as followed.
If HourCode = 389998 then Hours * 60 in the column Amount. How can i do this?
Solved! Go to Solution.
Hi @BobKoenen
The code for your amount Column:
IF(Table1[HourCode]=389998; Table1[Hours]*60)
if Table1[HourCode] is a number, or
IF(Table1[HourCode]="389998"; Table1[Hours]*60)
if Table1[HourCode] is text
Substitute Table1 with the name of your table
Hi @BobKoenen
The code for your amount Column:
IF(Table1[HourCode]=389998; Table1[Hours]*60)
if Table1[HourCode] is a number, or
IF(Table1[HourCode]="389998"; Table1[Hours]*60)
if Table1[HourCode] is text
Substitute Table1 with the name of your table
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 |
---|---|
107 | |
97 | |
75 | |
63 | |
53 |
User | Count |
---|---|
139 | |
100 | |
95 | |
85 | |
63 |