"tips and tricks"
11 TopicsUnable to sort legend in line chart using disconnected table
Hi Community, In the attached pbix file, Im facing 2- problems mentioned in the respective pages. In Problem-2 : Im trying to sort the legends using disconencted table but its not sorting as per my Dim Channel table - sort order column. [ Organic line on Top, then Search in middle & Display in bottom ] Thanks in advance!Solved1.3KViews0likes9CommentsMeasure not filtering as per time Calculation
Hi Community, In the attached pbix file, Im facing issue with Problem -1 in atached pbix. Issue : Im trying to use colesce function in the base measure 'vall' but due to that the date filter context is getting removed and showing data for all dates. But when i dont use colesece it works fine. Thanks in advance!Solved1.1KViews0likes5CommentsA function "PlaceHolder" has been used in a true/False expression that is used as a table filter .
Hi There, I am trying to create one measure where i am tryin to get Sum of Session Duration for Distinct Session Id's for each process name . in SQL we can do like this : Select Session Id , Sum (Session Duration) From XYZ Table where Process Name="X" Group By Session ID However when i am trying to replicate same logic in DAX i am getting below mentioned error : Session_Disticnt Count is a measure which i have created to get Distinct Values of session id's Request anyone to help in solving this issue . Thanks, Ash amitchandak Ashish_MathurSolved3.5KViews0likes14CommentsReplicating Minifs date in power bi
Im trying to create a measure that will enable me to generate the "Sales order date for return" columns available: key(which is the customer&order item), sales order date & return order date in excel, sales order date for return = MINIFS(B:B,A:A,A2,B:B,">="&(C2-15)) Thanks!937Views1like6CommentsDistinct count of a field based on Sequence of Process - DAX
Hello , I want to count the distinct IDs which have completed the process cycle which is from 'New Email' to 'Complete' only. Other IDs with an incomplete process cycle which does not End with a 'Complete' or start with 'New Email' needs to be ignored. ID Process Status Seq 11A NEW EMAIL 10 11A PROCESSING 20 11A PROCESSING TRANSFORMATION 30 11A PROCESSING TRANSFORMATION 30 11A PROCESSING TRANSFORMATION 30 11A PROCESSING OUTPUT 40 11A VALIDATING 50 11A WORKQUEUE 70 11A COMPLETE 100 12A NEW EMAIL 10 12A PROCESSING 20 12A PROCESSING TRANSFORMATION 30 12A PROCESSING TRANSFORMATION 30 12A PROCESSING TRANSFORMATION 30 12A PROCESSING OUTPUT 40 12A VALIDATING 50 12A WORKQUEUE 70 12A COMPLETE 100 13B NEW EMAIL 10 13B PROCESSING 20 13B TERMINATING 1000 14C NOTIFICATION 99 15D NEW EMAIL 10 15D PROCESSING 20 In the above example Only IDs - 11A and 12A have completed the process hence I need a count of 2 as my result. Tried this which didn't work! Test_Msr = CALCULATE(Distinctcount(ID) , FILTER( Min(seq = 10) && Max(seq = 100))) Can someone please help me with the dax!Solved793Views0likes3CommentsHow to make RANKX function rank based only on the first row group and exclude the other row groups
Hi, I have a rank function that needs to be calculated based only on Column1. Even if I add two or three other columns, the ranking should always be based on Column1. How can I ensure that my DAX formula ignores all columns except Column1 for ranking ? Note: Column1, Column2, and Column3 are from different dimension tables. MEASURE : RANK = VAR COLUMN1 = FILTER( ALL(D_COLUMN1_TABLE), CALCULATE( SUM(F_SCORE[SCORE]) ALL(D_COLUMN2_TABLE) ) <> 0 ) RETURN RANKX( COLUMN1, CALCULATE(MAX(D_COLUMN1_TABLE[NAME])) , , ASC, Dense ) This is the result i got:625Views0likes2CommentsHow to identify average when the column has text datatype?
Hi All, I have a column which has 'user name' and it's datatype is 'text'. Currently I am showing the data in card visual which shows distinctcount of username. However, I would like to show 'Average of number of users'. Since it is in text datatype, could you please advice on how to write the measure to achieve this scenario? E.g. data: Username abc def ghiSolved789Views0likes3CommentsCalculate values for the previous trading day when weekends are excluded
Hi. I want to calculate a measure to see required margin for the previous trading day. The dates I have in the table include all dates. I have tried tried a function as shown below. It doesnt show required margin for the previous trading day for weekends and holidays. On the start of the week (monday), it usually shows 0. On the report date it should show the required margin on last friday. How can I make a measure for required margin from the last tradingday when weekends and holidays are excluded?Solved897Views0likes2Comments