formulas
10 TopicsDax formula to select a row based on multiple criteria and eliminate duplicates
Hello - I am learning Dax and I am stuck with filtering a table and removing duplicates. I wish to filter the table to show the latest version of a contract, by contract id. My table consist of the following: Contract ID | Supplier | version | Descr | Begin Date | Expire Date | Max Amount | Line Released Amount | Contract Line number. I want a Dax formula that will return one line per Contract ID based on the latest version # of the contract. I am looking for the formula to return the data I manually highlighted in yellow. Is this possible? Thank You -Solved1.2KViews1like5CommentsDifferent column output basing on Parameter Selection
Hi Guys and Welcome Everyone! my first post in this community :). I have following query. I have created parameter using "New Parameter" -> "Numeric Range" Then I have edited parameter settings as follows: Then I would like to have column with different output depending on parameter selection. I wrote formula as follows: When I test it in report view, I always get "NOTPASSED", whatever I choose in the slicer. Do I miss anything or is there other workaround to achieve my goal?Solved1.3KViews0likes7Commentssubtracting 100 from each value in another column
i have % increase in one column eg 60%, 80% for various organisations and i want to show the remainder eg 40% and 20% in another so i can show stacked bar charts etc how do i create a column which deducts 100 from each percentage i tried something like % remaing = 100 - % increase but that didn't work Any help greatly appreciatedSolved1KViews1like3CommentsFormula To Excel
Pease give DAX for =-SUMIF(Details!B:B;'Cash Flow'!G34;Details!G:G)+4801. I have DebtorMovements = CALCULATE( -SUM('ZTBR'[Amount in USD]), 'ZTBR'[Roll_Up_Function] IN {"Debtor Movements"} ) + 4801 Is this correct? It gives me the value, but that same value then displays for all the rows, which should not be.1.1KViews0likes7CommentsPlease Help. WeekNum to Pay Period column/Formula
l'm creating a workbook for tracking meetings. I've just generated a pivot table calendar from a sheet with the following columns: "Date, WeekNum, WeekDay, Day, Month." It's great! However, I desperately need either the week number to align with the pay period calendar (starting on XX/XX/YR instead of 01/01/YR), or I need a column that is going to show the pay period week formulated off of the week number- but starting over at the end of the pay period year (So it can't just be a basic cell/value+#). Also, I'm COMPLETELY new to this, so I'm way in over my head with the formulas- but work is work. So, basically explain step by step what to do, or else I'll be lost. Thanks!731Views0likes1CommentLast 6 months completed
Hello everyone, I have a date table. I would like to be able to say whether or not the date I have in the date column is between the first day of the 6th last month and the last day of the last month. For example, today is 08/24/2023, I will have true for dates between 02/01/2023 and 07/31/2023 Thanks370Views0likes1CommentConverting Excel Workbook to Power BI DAX
Hi, I have several big formulas sitting in an existing Excel workbook that I need to transfer over to Power BI, however I have no idea how to convert these ones. Some are using the MATCH function from Excel, others I fear may be too long. If someone can provide some advice on how to make these work in DAX, that would be appreciated. I have more, but I think if I can understand how to acheive the below, it will help with the others. Month of Invoice This one looks at the following new fields in Power BI 'Invoice Number' in TEXT format 'Month' in TEXT format =IFERROR(IF([@[Invoice Number]]<>"",TEXT(INDEX(tbl_InvoiceNumbers[Month],MATCH([@[Invoice Number]],tbl_InvoiceNumbers[Invoice Number],0),),"mmmm"),""),"") EDD I have put this into Power BI as it looked simple enough, however it did not work. 'Quoted EDD' is in DATE format. EDD = IF('Stock Orders'[Quoted EDD]="","",IF('Stock Orders'[Quoted EDD]=1,"",'Stock Orders'[Quoted EDD])) It receives error DAX comparison operations do not support comparing values of type Date with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values. Date Ordered I have put this into Power BI as it looked simple enough, however it did not work either. 'Date Submitted' is in DATE format. Date Ordered = IF('Stock Orders'[Date Submitted]="",IF('Stock Orders'[PP]="PP1",DATE(2015,7,1),IF('Stock Orders'[PP]="PP2",DATE(2016,7,1),IF('Stock Orders'[PP]="PP3",DATE(2017,7,1),IF('Stock Orders'[PP]="PP4",DATE(2018,7,1),IF('Stock Orders'[PP]="PP5",DATE(2019,7,1),IF('Stock Orders'[PP]="PP6",DATE(2020,7,1),IF('Stock Orders'[PP]="PP7",DATE(2021,7,1),IF('Stock Orders'[PP]="PP8",DATE(2022,7,1),IF('Stock Orders'[PP]="PP9",DATE(2023,7,1),'Stock Orders'[Date Submitted]))))))))),'Stock Orders'[Date Submitted]) It receives error DAX comparison operations do not support comparing values of type Date with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values.Solved1.2KViews0likes3CommentsNeed DAX help on Calculate, Count and Filter Functionality
I've tried an IF(AND and CALCULATE(COUNT but I am struggling to find how to exclude the possibility of some variables in a count formula. I need to return everything in a Column (Action Code) that is "UC" only for a specific prem # (in the left hand column). In the Matrix. UC is a Count of the Action Code. In some cases, the Prem # will pull in multiple Action Codes too. So I will get a UC with SC, but I need those omitted and only show UC and null(blank) elsewhere. Maybe I am overthinking the DAX, but I am struggling on this. I have at least gotten the UC's to all appear in the formula below, but need some assistance in getting the other Action Codes removed. I know I need to Filter out the counts, but unsure how to do this. Such as if UC and SC are both 1 counts, they will be removed from the matrix. CALCULATE( COUNTA('DataSet'[CRDT_COLL_ACTN_CD]), 'DataSet'[CRDT_COLL_ACTN_CD] IN { "UC" } )Solved3KViews0likes11CommentsRun DAX formulas based on values/criteria to produce the required output.
Hi ... I have data like below for my dashboard. So far I'm having trouble with the expected results for item no. 4 and no. 5 as table below. As we can see, the table above has values that indicate that the KPI indicator is either increasing or decreasing. Achievement column is the activity result for each items. How can I get the result as in column status?... Can someone help me and advise on this. Regards.Solved1.2KViews0likes6CommentsHow to deduct cents from a rate column and the multiply that value for a total volume in Power BI?
Hi Group, I’m new to Power BI and I’m trying to replicate from Tableau the below formula into Power BI. Can anyone please tell me how to create a measure in Power BI for the below formula? Formula in Tableau: Table Name: Bpay_Biller Columns: DR Chg Rate Debit Account Volume (0.88 - [DR Chg Rate]) * [Debit Account Volume] Thanks for your help ☺️!Solved837Views0likes2Comments