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 All,
I am trying to make a new column for the following logic;
IF Policy Period <= 90 day and % Turn Over >30% then true else false.
Measures:
% Turn Over Limit = DIVIDE([Available Limit]/[Annual Limit],0)
IF (
([Available_Annual_Limit]/[ANNUAL_LIM])*100) >=30 &&
Duration.Days(Duration.From(TODAY()-[DATE_INCEPT])
) <= 90,
true, false
)
Attempt 2
IF(
AND(
AND(Duration.Days(Duration.From(TODAY()-[DATE_INCEPT])) <= 90)[Available_Annual_Limit]/[ANNUAL_LIM])*100) >=30),
"True","False"
I am stuck and not sure how to approach this so any help would be appreciated.
Solved! Go to Solution.
Try to create calculated column as below
New column=if(
([Available_Annual_Limit]/[ANNUAL_LIM])*100) >=30 &&
Datediff(Max(DOCWA_Perpetual_Eligibilities[DATE_INCEPT]),today(),Days) <=90,TRUE,FALSE)
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
If I resolve your problem Mark it as a solution and give kudos.
Try to create calculated column as below
New column=if(
([Available_Annual_Limit]/[ANNUAL_LIM])*100) >=30 &&
Datediff(Max(DOCWA_Perpetual_Eligibilities[DATE_INCEPT]),today(),Days) <=90,TRUE,FALSE)
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
If I resolve your problem Mark it as a solution and give kudos.
Hi @Anonymous
i think you'va got a completely wrong format if-statement for power query. try smth like this
= IF
([Available_Annual_Limit]/[ANNUAL_LIM])*100 >=30 &&
Duration.Days(Duration.From(DateTime.LocalNow()-[DATE_INCEPT])) <= 90
then true
else false
do not hesitate to give a kudo to useful posts and mark solutions as solution
Thanks for the reply but I am getting a token Literal error.
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.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
21 | |
18 | |
15 | |
14 | |
13 |
User | Count |
---|---|
38 | |
34 | |
21 | |
19 | |
18 |