dax&power query
12 TopicsQuery Resources Issue - Actual vs Budget Finance Report
I am trying to construct a matrix that displays my details as rows, presenting five years of data that includes both actual values and budget figures. Specifically, I have five years of actual data and budget values only for the current year, along with calculations for variances between current year (CY) and last year (LY) actuals, as well as the growth from CY actual to LY actual and budget performance. However, I'm facing a challenge because I lack a dedicated column for these particulars; instead, the data is sourced from various MIS columns across three different tables, with inconsistent naming conventions. I can create the visual representation, but it breaks when I attempt to filter the months using a slicer.1.1KViews1like2CommentsHow to use SUMMARIZE inside a calculated column?
I'm trying to get information from aggregated version of my table into my original table as a column, but im not sure how to do it. Find the sample ecxample below The table contains 4 column - EMP_ID, DATE, MONTHLY SALARY, DESIGNATION I want to create new column called TOTAL SALARY which is the sum of salary for each employee available in data. There is time filter as well, like if I select 6 months in the filter visual the total salary should be populated as total six months salary. I couldn't find a way to do it in PBI using DAX/POWER QUERY. Please help me on this!! ThanksSolved1KViews0likes2CommentsHow do I filter by rows and count the total?
I need to be able to filter on the columns below to create a new column that filters and counts based on them. For example, if Type is "AWS" or "Azure" filter based on director and count the number of same title there are. Similary for Type that is not "AWS" or "Azure". Type VP Director Title Azure Steve Adam Engineer Azure Steve Adam Data Science AWS Steve Adam Engineer AWS Steve Rory Engineer On-Prem Steve Rory Network On-Prem Steve Rory Network VHOST Steve Rory Network Azure Mary Austin Data Science Azure Mary Austin Data Science The new table with the column should look like this: VP Director Title Count Steve Adam Engineer 2 Steve Adam Data Science 1 Steve Rory Engineer 1 Steve Rory Network 3 Mary Austin Data Science 1 I tried to use the DAX GROUPBY and also the GROUPBY in power query. I'm not able to figure out a solution. Please help me, if you can. Thank you!Solved602Views0likes2CommentsDynamic Measure Required with two slicer
Hi Folks, I'm trying to develop the dashboard by comparing two months and their uses of two slicers. I prepared the dashboard using Excel Formulas. please help to develop Power-BI As the Raw data is attached Excel is available. please refer it Google Drive Link for Excel File Please feel free to contact for more info if required. RAW Data Period Account Value X Value Y Value Z Fix Tata 4 3 5 Fix Birla 6 7 8 Fix Adani 7 8 9 Fix RIL 8 9 10 Fix Tata 9 10 11 Fix Birla 10 11 12 Jan Adani 11 12 13 Jan RIL 12 13 14 Jan Tata 13 14 15 Jan Birla 14 15 16 Jan Adani 15 16 17 Feb RIL 16 17 18 Feb Tata 17 18 19 Feb Birla 18 19 20 Feb Adani 19 20 21 Feb RIL 20 21 22 March Tata 21 22 23 March Birla 22 23 24 March Adani 23 24 25 March RIL 24 25 26 March Tata 25 26 27 March Birla 26 27 28 March Adani 27 28 29 April RIL 28 29 30 April Tata 29 30 31 April Birla 30 31 32 April Adani 31 32 33 April RIL 32 33 34 April Tata 33 34 35 Regards, MOHITSolved905Views0likes2CommentsParent Child Merge Calculation
I have a dax code the get the relationship for parent and child Relation = CONCATENATEX(FILTER('Table',PATHCONTAINS(PATH('Table'[Child],'Table'[Parent]),EARLIER('Table'[Child]))),'Table'[Child],"|") But unable to get the calculate sum values. Pls. kind support to get the calculated values same as Relation logic. but should be sum calculation. Below should be same as the results column values. Child Parent Value Relation Results 2001 2002 10 2001 10 2002 2003 15 2001|2002 25 2003 2004 20 2001|2002|2003 45 2004 2005 25 2001|2002|2003|2004 70 2005 2006 30 2001|2002|2003|2004|2005 100 2006 2007 35 2001|2002|2003|2004|2005|2006 135 2007 2008 40 2001|2002|2003|2004|2005|2006|2007 175 2008 2009 10 2001|2002|2003|2004|2005|2006|2007|2008 185 2009 15 2001|2002|2003|2004|2005|2006|2007|2008|2009 200 2010 2011 20 2010 20 2011 25 2010|2011|2012|2013|2014|2015|2016 245 2012 2011 30 2012|2013|2014|2015|2016 200 2013 2012 35 2013 35 2014 2012 40 2014 40 2015 2012 45 2015|2016 95 2016 2015 50 2016 50Solved1.5KViews0likes8CommentsCalculate days difference between two lease contracts for same unit
Hi All, I have to calculate days required to fill property vacancy. This is based on the expiry of the existing contarct and start date of a new contract for same unit. Once I have this information, then I can calculate average days required to fill vacancy property wise or at portfolio level or year wise. Days can be calculated either in Power query or using DAX. Unit No Contract No Customer Name Start Date End Date Days Remark PROP03-1002 000767-1 AZRIS 31-Oct-17 30-Oct-18 868 3/16/2021-10/30/2018 PROP03-1002 001607-1 ALPHA 16-Mar-21 15-Apr-22 481 8/9/2023-4/15/2022 PROP03-1002 L02195 Salu 9-Aug-23 8-Sep-24 0 Unit still occupied, so no renewal PROP03-1111 000187-1 Explorer 4-Sep-17 3-Sep-18 135 1/16/2019-9/3/2018 PROP03-1111 001023-1 Vision 16-Jan-19 15-Feb-20 0 Day difference is 1 day but same tenant so 0 day PROP03-1111 001023-2 Vision 16-Feb-20 15-Feb-21 129 PROP03-1111 L00079 Alliance 24-Jun-21 23-Jul-22 0 Day difference is 1 day but same tenant so 0 day PROP03-1111 L01219 Alliance 24-Jul-22 28-Jul-22 12 PROP03-1111 L01241 LEGAL 9-Aug-22 8-Aug-23 98 PROP03-1111 L02654 TRAVEL 14-Nov-23 13-Dec-24 0 Unit still occupied, so no renewal PROP03-3616 000243-1 Mohammad 9-May-17 8-May-18 28 PROP03-3616 000894-1 English 5-Jun-18 11-Sep-19 4 PROP03-3616 001112-1 Artificial 15-Sep-19 8-Jun-20 0 Day difference is 1 day but same tenant so 0 day PROP03-3616 001112-2 Artificial 9-Jun-20 8-Jun-21 36 PROP03-3616 L00087 Omar 14-Jul-21 14-Jul-21 0 Day difference is 1 day but same tenant so 0 day PROP03-3616 L00831 Omar 15-Jul-21 13-Aug-22 1 PROP03-3616 L01832 BLUE 14-Aug-22 13-Aug-23 0 Day difference is 1 day but same tenant so 0 day PROP03-3616 L02982 BLUE 14-Aug-23 13-Aug-24 0 Unit still occupied, so no renewal Thanks for your suggestion, ChandraSolved909Views0likes3CommentsHow to get the flag count for the countries which lies in both the group based on the custom logic?
Hi All, Consider we have a table with a list of countries and group names assigned for each county. We need to create a Flag column that will have the values Yes, No & Both. 1. When the country has the Group Name as Group 1, the flag will be Yes 2. When the country has both Group 1 & Group 2 or Group 1 & Group 3, a. the flag will be Both for the row that contains Group 2 b. the flag will be Yes for the row that Group 1 3. In other case, the flag will be No Country Group Name Flag AAA Group 1 Yes BBB Group 2 No CCC Group 3 No DDD Group 1 Yes DDD Group 2 Both EEE Group 3 No FFF Group 1 Yes FFF Group 3 Both GGG Group 3 No Can you please help in achieving the flag logic through DAX? Thanks in advance !!Solved755Views0likes2CommentsParent and child calculation
i have a parent and child table, i wanted to calculate the values with respect to their root parents like a family tree Parent Child Value Site1 Site2 10 Site2 Site3 20 Site3 Site4 15 The output should be, Parent Child Value Output Site1 Site2 10 10 Site2 Site3 20 30 Site3 Site4 15 45 Thanks in advance682Views0likes3CommentsExcel formula into DAX to create calculated column in Power Bi
I have a table with thousands of lines as in the example below. I want to be able to group the information by InvoiceId column (A) then look at the value in (C) to return the expected result in column (E), but its proving somewhat difficult to write a DAX statement to provide this information in a new column in power bi, or power query in power bi. Note that in (A) there are multiple id numbers and multiple variations in (C), one rule is that when there are multiple lines with the same invoiceId and PO or No PO in column (C) then PO will always override No PO. If it is just a single or multiple line in (A) with the same value in (C) then it is true to return that value. Its only when i hit multiple variations in (C) to the same Id in (A) where i cannot get the expected result. I have a formula in excel that seems to work okay in excel table, but cannot convert to a DAX formula. I have provided this below if it helps please? =INDEX($C$1:$C$1000,MATCH(MIN(IF(($A$1:$A$1000=A1)*($C$1:$C$1000<>"No PO"),$D$1:$D$1000)),($D$1:$D$1000)*($A$1:$A$1000=A1)*($C$1:$C$1000<>"No PO"),0))601Views0likes2CommentsNEED HELP IN POWER BI
Hi power bi developers, please help me out I have a columns like this in power bi - attachment given. 1.I have to keep a filter with higher members- only (XX123 ,XX124)- IF I SELECT THE ANY ONE IN FILTER IT SHOULD SHOW FROM HIGHER TO LOWER path with aggregation chart I have to show the chart like this - chart snap attached below. OR ANY RECOMMENDED VISUALS IN POWER BI. PLEASE HELP ME ! i'M NEW TO POWER BI🙏4.5KViews1like17Comments