if and with multiple conditions
7 TopicsIF with multiple condition (more than 3) + DAX formula help needed
Hi Masters, I am pretty new in DAX as well as in Power BI. Please see below snapshots : Basically I am trying to mark/tag my projects with specific words based on their approval statuses. I have 3 types of approvals and if all have "Yes" I would like to write and tag that project as "F-R-W" whcih stands for "Finance - Risk - Workstream". I am able to do this in excel table where I have one table. However now I am trying to do this in database where I have many tables with relationships. It is not only question around multiple AND conditon with IF, it is also how I can do this in database where I have multiple tables . Please check snapshots and i hope you will understand what I am trying to do. Excel formula that I used to use: In DAX - what I am trying to do Expected DAX outcome: Regards, AkitoSolved5.2KViews0likes3CommentsSelect, Return and Conectate multiple fields based on criteria
I've been searching for awhile but can't quite find a query to return what I'm hoping to get. To keep it simple, I'm trying to write a query that can have multiple correct returns and, if I'm not asking for the moon, returns them all in the same row. Example: I have two tables like so: Assets ID Number Target Viscosity 1 5.9 2 8 3 23 Fluids Fluid ID Min Viscosity Max Viscosity 1 4.5 12 2 7 18 3 15 30 What I'd like to see is this: Assets ID Number Target Viscosity Fluid ID 1 5.9 1 2 8 1, 2 3 23 3 This pseudo-logic in my head is something along the lines of IF(AND(Assets[TargetViscosity] > Fluids[MinViscosity],Assets[TargetViscosity] < Fluids[MaxViscosity]), ...Return all possible matches in a single row with a deliminator..., 0) Anyone got any ideas?Solved815Views0likes2CommentsDAX measure with multiple IFs
Hello, Please can you help me to write this DAX measure in Power BI? I have 5 columns with multiple combinations (A - E) and F column which summarize the columns A - E. I need to obtain the result from column "RESULT" and I don't know what formula should I use. Thank you for your support.Solved686Views0likes2CommentsIF current week is blank show prior week and if prior week is blank so Not Available
Hi All, I am having difficulty finding a solution to a simple logic measure. The measure will be placed in the KPI visual. The logic is as follows: Two measures: Current Week Prior Week Logic: If the current week's results are blank, show the prior week's results. If the prior week's results are blank, show "Not Available". The reason the current week's results would be blank is because a portion of our data is not updated until the end of the week and everything else is updated at the beginning of the week. The reason the prior week would be blank is again the same reason except the lag between updates may move into following week. Thank you!Solved532Views0likes2CommentsNew column based on values/string of two other columns
Im new to PBI and trying to recreate an expression from another package and having some issues due to inexperience with PBI. Im trying to create a new column with string "pass" or "fail".Below is generaly what im trying to do new = if( [col01] = ''abc'' && [col02] > 20, ''fail'', elseif [col01] = ''def'' && [col02] > 50, ''fail'', elseif [col01] = ''ghi'' && [col02] > 100, ''fail'', pass ) Questions: 1. Is there an elseif type function in PBI? 2. Without trying to nest and using the follwing expression i get the following warning. new = IF( [col01] = ''abc'' && [col02] > 20, ''fail'', "pass") DAX comparison operations do not support comparing values of type Text with values of type Integer. Consider using the VALUE or FORMAT function to convert one of the values. is there a solution to this? Advice, links to pages that may help greatly appreciated. rstySolved2.6KViews0likes3CommentsNew Conditional Column Calculation based on (non-value) other column entry
Hi, I'm relatively new to PBI and I wanted to create a column showing the 'Bonus' amount (the new 'outcome' column) but based on a calculation of either ("Sales Rev" x "Multiplier") or ("Sales+Referrals Rev" x "Multiplier)". So for example, if the entry in Column B ("Level") = 'Junior', the multiply column C ("Sales Rev" which is itself a sum of certain columns) by the column E ("Multiplier", which is itself a calculated field). But if the entry in Column B("Level") = 'Exec', the multiply column D ("Sales Rev + Referrals" which is itself a sum of different columns) by the column E ("Multiplier"). Hope that makes sense. I'm working in the Transform Data table at the moment, and would appreciate any guidance! I've copied the data back into excel to illustrate what i'm trying to show... Much appreciated, BxSolved866Views0likes3CommentsDaily Average Number of Cases Open- Community Services
Dear Members/super contributors, In community services we have to report on daily average number of clients in the care program per month. This is calculated under following conditions: 1. If the client was in care program prior to start of the month and stayed in the care till the end- then we count as number of days in the month. 2. if the client joined the care program within the month then we take datediff between the date of joining and the end of the month date. 3. if the Client left the program within the month under consideration then we do the datediff between the start of the that month and the day they left the program. We add all these numbers and divide them by the number of days in the month to calculate daily average. If someone can help me with syntax of multiple if/ any other function and multiple datediff's or any other way to approach it. My data looks like this and the last column is the intended solution Thanks in advance1.4KViews0likes7Comments