Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I want to know dax syntax for calculating job range in PowerBI . I have highlighted the column that is the answer should I need in PowerBI @Vijay_A_Verma
Solved! Go to Solution.
Hi @AtchayaP ,
It's the Power Query forum, we use the M language instead of the DAX language in the Power Query Editor.
They are different, you can refer to Differences between the M Language and DAX in Power BI.
The screenshot you provided is in the Power Query editor.
You can add the conditional column as
Here's the result.
You can go to the advanced editor to check you codes.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Use below DAX. Replace Range with your result column name and Years with your input column name
Range =
SWITCH(TRUE(),
[Years]>5,"5 years",
[Years]>3,"3-5 years",
[Years]>1,"1-3 years",
"<1 year"
)
Will this works,?
Hi @AtchayaP ,
It's the Power Query forum, we use the M language instead of the DAX language in the Power Query Editor.
They are different, you can refer to Differences between the M Language and DAX in Power BI.
The screenshot you provided is in the Power Query editor.
You can add the conditional column as
Here's the result.
You can go to the advanced editor to check you codes.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |