need help -dax measures
19 TopicsCalculating Time Difference between Start and End Timestamps excluding overlapping of multiple rows.
Explanation: We need a calculated Column/Measure that can calculate the time difference excluding the overlapping time between two Timestamp Columns: Start Time and End Time. Each Row represents an event in the table. The Output (Minutes) column [Time Format – Minutes] is our desired output and the total is the calculated sum of the Output we need in Minutes format. Basically, when there is any overlapping of time, we consider the start time stamp of first overlapped event and the end timestamp of last overlapped event. For Example: Event 7 starts at 13:40PM on 28th and ends at 16:00PM of the same date. The Output can be 140 Minutes Time difference, but we have Event 8 that starts at 15:00PM which has overlapped between with the timing /Duration of Event 7. It ends at 17:50PM. Hence, we will take start time of Event 7 and End time of Event 8 and calculate the time difference that is 250 Minutes. This calculation goes on throughout the table.Solved1.6KViews0likes1CommentNeed to show previous 2 Month data in Matrix table
Hi All, I am using Matrix table in the row using category and the column using Month-Year and the value is sum of sale and am using slicer for the month. My requirement is if am select the Nov-2020 date in the slicer i want to show previous 2 month in the table Sep-2020,Oct-2020. This is current output Expected Output Please assist on the request amitchandak991Views0likes6CommentsDAX formula is not suitable
Hello, I have difficulty. I created a DAX formula like this. SisaNilaiKontrak = CALCULATE( SUM('Contract'[Remaining Contract Value (USD)]) - SUMX( FILTER( 'SPK Plan', 'SPK Plan'[No. Contract] ), 'SPK Plan'[Spk Plan ] ), 'Contract'[No Contract], 'SPK Plan'[Bulan] and result like this : However, the results are not appropriate. the results in the "Remaining Contract Value" column should be the same as in the "Remaining USD Contract" column what should I change to the formula? Attached I share the link to this file Thank you https://drive.google.com/file/d/1oXdO-1hdSNzbpNH4brRZTkRyeSxxJ5zj/view?usp=sharingSolved623Views0likes2CommentsHelp in comparing values in a same column.
Hi, I am trying to achieve a result by comparing two rows in a column and show output based on a condition. I have shared a simple layout of the table on the below image , We are trying to achieve result similar to As you can we need add a column with comparison both row data for different and If equal show "O" and not equal "X". Thank youSolved688Views0likes2CommentsLimit Parameter slicer to be applied to a specific measure in Matrix
Hi Everyone, I have a matrix visual with MTD and YTD values for expenses with location and account lines. I need MTD to be filtered and i want YTD to remain static, to filter the MTD value i have used a parameter and used slicer from it. How can i limit YTD value to not get affected from the slicer. I also have a relation from table A with the parameter table. The measure for YTD value is as below: YTD = VAR n = [EXPENSES] VAR d = year(today()) RETURN CALCULATE( n, ALLEXCEPT('Table A', 'Table A'[Date].[Year]), 'Table A'[Date].[Year] = d ) Measure for MTD: MTD-PARAM = CALCULATE( [EXPENSES], 'Table A'[Month NO] = SELECTEDVALUE('Parameter Table'[Month NO]) && YEAR('Table A'[Date]) = YEAR(TODAY()) ) Thanks For the help.Solved891Views0likes3Commentscount the number of applications
i have the following data order stauts 216 submited 216 accepted 217 submited 217 resumited 217 accepted 218 submit 218 return to applicant 218 resubmit 218 reject 1- i need to count the number of orders that got accepted without being re submit so in this case it should give one order please help and thank you 2- 1- i need to count the number of orders that got accepted with being re submit so in this case it should give one order please help and thank youSolved1.8KViews0likes6CommentsDAX Calculated measure verification
The following is the Calculated column DAX I am using. a) App Role is joined to App in a many-to-one relationship. Level 1 = IF( 'App'[TBUS] <= 24 && (TRUE) 'App'[NE] = "Existing", (TRUE) IF( SUMX(FILTER('Application Role', 'App Role'[Role] = "PB"(TRUE) && 'App Role[App Type] = "Individual" (FALSE),1)>0, 1, 0 ), 0 ) 0 ) The result should be 0 but I get 1. The App Role has duplicate Application IDS(Primary Key joined with Application Table(Application ID)). For example Application Role Table: Application ID App Type Role 1234 Individual gc 1234 Org GC 1234 Org PB 1234 Individual GC 234 Individual PB 234 Org GC So the formula should return false for 1234 because App type = Indivdiual (True) and the corresponding value of App type = "Individual" is False. Where am I going wrong?Solved2.5KViews0likes15CommentsFind Returning Employees
I hope you experts can help I have an EmployeeHistory table with 3 main columns that i want to calculate on. It's a snapshot table, so there are many entries with the same information. EmployeeID HireDate TermDate The table has two dimension tables connected to it. Date and Employee. Both of these tables have a 1 to many relationship on the HireDate and EmployeeID and there is also a inactive relationship on the TermDate. The TermDate is empty if they are still working for us. I want to calculate when an employee returns to work at the company. This calculation shouldn't show the first HireDate. Example Table: EmployeeID HireDate TermDate 1 01/01/2020 15/03/2021 1 01/01/2020 15/03/2021 1 01/01/2020 15/03/2021 1 19/11/2022 1 19/11/2022 Thanks331Views0likes1CommentDax for Dates RAG Status
Hello Everyone, I am looking to add conditional formatting to a date column to highlight due dates using Red, Abber and Green. My date column is called 'Cancellation Date'. I would like to highlight dates as follows: Anything due before today = Red Anything due in the next 6 months = Amber Anything due in more than 6 months = Green Any assistance would be much appreciated.Solved2KViews0likes9CommentsDax
Code Name PM 750 MG A measure1 20 CD-6"ASX B measure2 40 500-182-30 C measure3 35 CD-12"CP D 2046S B 103-137 D 530-123 C CD-30DC E CD-30DC A CD-30DC F CD-30DC F CD-30DC E CD-20APX A CD-20APX G CD-20APX C CD-20APX G 192-630-10 C I want to write a Dax measure to calculate (measure1 /2) if name =A or B, (measure2 /5) if name =C or D or E,(measure3 /7) if name =F or G Thanks,,,,Solved760Views0likes3Comments