show & tell
6 TopicsSum of Max at row level in a measure with filters
Hi, I want to be able to create a calculation at row level in a measure without adding a calculated column. In my Patient data, I want to calculate the sum of patients for each month but before calculating sum, I want to apply a condition at row level which is Max(Patients, 0). I am able to achieve this using the following measure - test - Max at row level = CALCULATE(SUMX(Patients,MAX(Patients[Patients],0))) But I want to able to apply filters like Type = "Paid" and Product = "Product A" and I am not sure how to that in the above mesure so that it keeps the calculation intact. Please let me know if you have any solutions. The client is not keen on adding a column in the data and wants to calculate everything in a measure. Thanks!Solved1.5KViews0likes6CommentsMultiple Filters from multiple tables with a VAR
Hello Community, I have a tricky problem that I am trying to solve related to a DAX. I have daxed the below to calculate the distinct count of claims based on 3 conditions and summing them at the end for whatever applies. However, It is giving me me that it is incorrect. Any idea on what I am missing or perhaps is there a better way to dax it. #Claims - <100$ = VAR Condition1= CALCULATE(DISTINCTCOUNT(claim[Claim]), FILTER(claim, claim[Total Employee payment Value])<100, FILTER(paymentbatchtable, paymentbatchtable[Payment file generated] = "Yes" && paymentbatchtable[Payment Batch] = SELECTEDVALUE(paymentbatchtable[Payment Batch])) VAR Condition2= CALCULATE(DISTINCTCOUNT(claim[Claim ID]), FILTER(claim, claim[Total Employee Payment Value])<100, FILTER(paymentbatchtable, paymentbatchtable[Payment File Cheque Generated]= "Yes" && paymentbatchtable[Payment Batch] = SELECTEDVALUE(paymentbatchtable[Payment Batch])) FILTER(claim, claim[Total Employee Money Value(Base)])<100, FILTER(chequerecord, CONTAINSSTRING(chequerecord[Payment Batch],"EFT")), FILTER(paymentbatchtable, paymentbatchtable[Payment File Cheque Generated]="Yes" && paymentbatchtable[Payment Batch] = SELECTEDVALUE(paymentbatchtable[Payment Batch])) VAR RESULT = Condition1 + Condition2 +Condition3 RETURN RESULT SUM986Views0likes4CommentsCreate comparison visuals to show sales growth for invoiced sales per market introduction
I am in need of a little expertise here. I need to create a set of compariosn visual or a table might even work. I would like to compare sales growth between what we consider market introductions. One issue up front is that the market intro field is not stored as a date field in our system. For example, I would want to allow the user to select the preferred market intro and compare sales growth between those two markets. How could I accomplish this? Thanks so much. Sample Data Below. Item Market Introduction Category Total Invoiced Sales 100008 01 JAN 2020 Ceiling $5,000.00 100009 01 JAN 2020 Ceiling $2,650.00 200019 06 JUNE 2020 Wall $7,800.00 200020 06 JUNE 2020 Wall $1,678.00 300018 10 OCTOBER 2020 Hanging $1,500.00 300019 10 OCTOBER 2020 Hanging $5,897.00 400010 01 JAN 2021 Ceiling $8,564.00 400011 01 JAN 2021 Ceiling $3,428.00 500010 06 JUNE 2021 Wall $3,450.00 500011 06 JUNE 2021 Wall $5,876.00 600010 10 OCTOBER 2021 Hanging $2,650.00 600011 10 OCTOBER 2021 Hanging $5,897.00476Views0likes1CommentDAX Formula and Measure Question
Hello everyone! My data is depicted below (1st picture). It is pretty simple, I created the Total Subtasks Completed and the % of PP Progress columns. The total subtasks completed is the sum of the all the different subtask result columns, and the % of PP progress uses the values in the Total Subtasks completed columns divided by 17 because thats how many different subtasks there are. On the second picture I attached, I made a quick table visual which shows how many subtasks and their % of PP progress a person has. I was looking to create a measure or column which can bucket the % of PP Progress into a 25% bucket. Such as those between 0 and 25% are in 1, 26-50% in another, 51-75% in a third, and lastly 76-100%. Is there a DAX Calculation I can use to make this successful?Solved1.2KViews0likes6CommentsHow to go back to Parent report in case of Cross report drillthrough - any soulution
How to go back to Parent report in case of Cross report drillthrough - any soulution identified in recent upgrade by Power BI. I know only browser back is working but in general users are intersted to use the back arrow button to go back to parent report. please let me know if there is any solution to fix it. Thanks in advance!Solved524Views0likes1CommentDynamic Date Key
Good morning all! Is it possible I can create a dynamic date column in a table from this Date - Month column depicted below? Ideally, I would like the most recent date, in this case Sep 2022 to have a value of 1, and the months prior to keep countining upwards. But after every new updated month, I always want the most recent month to be 1.Solved603Views0likes2Comments