The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi
I want to create a new column or measure that looks at two colums with different data types and returns a value.
I want to re create the below. The start year is TEXT and the progression Target is decimal number. I want the progression column to populate based on -
If the start year is 2016/17 then return NA or blank, if it is anything else return the progression target. Any help would be appreciated, thank
Start Year | Progression Target | Progression |
2016/17 | 5.6 | NA |
2016/17 | 2.8 | NA |
2016/17 | 3.7 | NA |
2017/18 | 7.5 | 7.5 |
2018/19 | 5.2 | 5.2 |
Solved! Go to Solution.
@WJ876400 You are missing second argument of format function
try this
IF(learners[ACADEMIC START YEAR]="2016-2017","NA",FORMAT(Learners[OJT_Target.CURRENT OJT TARGET],""))
Column = IF('Table'[Start Year]="2016/17","NA",FORMAT('Table'[Progression Target],""))
Hi @Anonymous i tried that but get the following error
@WJ876400 You are missing second argument of format function
try this
IF(learners[ACADEMIC START YEAR]="2016-2017","NA",FORMAT(Learners[OJT_Target.CURRENT OJT TARGET],""))
thanks very much that worked
Hi
It is from two spreadsheets merged in the query
thanks
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
78 | |
69 | |
52 | |
50 |
User | Count |
---|---|
120 | |
120 | |
76 | |
62 | |
61 |