help request
96 TopicsPREVIOUS MONTH returns blank
Hello experts, I want to retrieve the nb_conv_int for the last month so I used PREVIOUS MONTH as you can see below: Nb_conv M-1:=CALCULATE([Nb_conv_inter];PREVIOUSMONTH(Date_table[Date])) But, it returns blank value: I don't know what's going wrong. Here is my data (if you want to help) Below my data model: Thanks in advance.Solved6.2KViews0likes2CommentsDAX measure to exclude certain categories to create a new table measure
Hello, I am looking to create a new measure to include in a table. Say I have 30 categories, and I need to exclude 10 of them on a measure, because this # will be used in multiple visuals, I don't want to exclude in the filter pane of each visual. I've only seen examples where And/Or are used and those only have 2 logical areas. Trying something like CALCULATE( SUM(FACTS_Service_Per_Category[Price]) , AND( FACTS_Service_Per_Category[Category] <> "Product 1", FACTS_Service_Per_Category[Category] <> "Product 2", FACTS_Service_Per_Category[Category] <> "Product 3", FACTS_Service_Per_Category[Category] <> "Product 4", FACTS_Service_Per_Category[Category] <> "Product 5", )Solved5.3KViews0likes4CommentsReturn multiple values from lookup
Does anyone know if there is a way to lookup a value from one table and return multiple values concatenated together like shown in the [Result] column of the 'Result Table' below? Lookup Table Item Value Item #1 Red Item #1 Large Item #2 Yellow Item #2 Small Result Table Item Result Item #1 Red; Large Item #2 Yellow; SmallSolved5.3KViews0likes2CommentsMeasure calculation using different columns based on a value
This is going to be confusing, I apologize in advance. I will try to be as clear as possible. I am trying to create a measure I can use in a visual table that can be filtered by the user. I want that visual to look something like this where $Value is the measure I am trying to create: OrderNbr ShipComplete $Value 12345 Yes $12,000 67891 No $2,000 My question is, is it possible to have the measure sum different column values based on if the order is ShipComplete=Yes or No? In my raw data, each order will have several lines all with differnent $LineValues. In my visual, I want the measure to Sumx(ALL( $LineValues)) IF the order is ShipComplete=Yes regardless of any filters the user applies. If the order is ShipComplete=No I want the measure to only sum the $LineValues of lines that the user filters for. The filters will usually only apply to certain line items on an order so if a filter is applied, the order could get split up in my visual. For example, if the filters result in only 2 of the 5 line items on an order and the order is ShipComplete=Yes then I want the visual to show the sum of all 5 line item values but if the order is ShipComplete=No then I want the visual to show the sum of only the 2 line item values. UPDATE: This is even more complex than I originally thought. My data has 3 levels to it: Order, TopLevel, Item. Each Item has a price associated with it and also have the values which the user will be filtering based on in my data. I want the resulting visual to show a sum on the Order level (as seen in above table). If the order is ship complete I want to see the sum of all Item values in that order regardless of filters. If the order is not ship complete but the item has a TopLevel, I want to see the sum of all Item values in that TopLevel. Otherwise I only want to see the sum of Item values that the user has filtered for. Below is a better example of my raw data set where Color is what the user will filter the visual on. Order# TopLevel# Item# Ship Complete Item$ Color 1 100 101 No 5 red 1 100 102 No 7 green 1 100 103 No 5 green 2 104 Yes 10 red 2 105 Yes 4 green 3 200 106 No 5 red 3 200 107 No 3 green 3 201 108 No 5 red 3 201 109 No 3 green 3 110 No 10 green From this data I want a visual that results in exactly the following (assuming the user filters for "red") Order# Ship Complete Total Value 1 No 17 2 Yes 14 3 No 16 Is this even possible??3.6KViews0likes4Commentscalculation based on the previous value
Hi all, I am stuck with creating a dax function, i really need help.. Here is an example, the final in the table should be my result, I have a value for 2019 which is the starting point of the calculation, then its about adding up the previous value calculated multiplied by the factor. Thanks in advance for your support.Solved3.2KViews0likes7CommentsMonth On Month Comparison between two sheets for current month value
I Have two excel which i have imported into Power bi . one table name called FINAL another table name called Template. FINAL Month&Year Plant Quantity June 2022 ITGH 34 -- taking this value compare to all the months in template sheet . July 2022 CH01 33 August 2022 CZ01 45 September 2022 RZ01 56 October 2022 LT01 34 November 2022 RS7Z 65 December 2022 DE19 23 January 2023 ITGF 67 Feburary 2023 NL07 78 March 2023 PLO2 23 I taking to July month quanity Sum from Final sheet this value compare to all months in Template sheet Template Month&Year Plant Quantity June 2022 ITGH 24 July 2022 CH01 53 August 2022 CZ01 65 September 2022 RZ01 26 October 2022 LT01 44 November 2022 RS7Z 75 December 2022 DE19 33 January 2023 ITGF 87 Feburary 2023 NL07 58 March 2023 PLO2 23 Final Result : Month&Year Plant Quantity July val finalsheet increase /Decrease June 2022 ITGH 24 34 -10 July 2022 CH01 53 34 19 August 2022 CZ01 65 34 31 September 2022 RZ01 26 34 -8 October 2022 LT01 44 34 10 November 2022 RS7Z 75 34 31 December 2022 DE19 33 34 -1 January 2023 ITGF 87 34 53 Feburary 2023 NL07 58 34 24 March 2023 PLO2 23 34 -11 How to compare month on month FINAL sheet june value to all the months in template sheet . looking for support . thanks in advanceSolved3KViews0likes12CommentsDax YTD Calculation over multiple years
Hi everyone, i have a problem with a dax formula and i hope you can help me. I want to have a line chart which displays ytd sales for the last 4 years, based on a slicer where i want to select a month up to which the ytd value should be calculated to. Meaning when i select the month 06 for 2021 i want to have in the y axis of the line chart the following values: for 2021 --> the ytd sales value for 2021 until the month 06 for 2020 -->the ytd sales value for 2020 until the month 06 for 2019 -->the ytd sales value for 2019 until the month 06 for 2018 -->the ytd sales value for 2018 until the month 06 In the x axis i would then drop the year from my calendar do display the evolution of the ytd sales. Thanks in advance for your help and KR, DanielSolved2.6KViews0likes3CommentsIf null, then use other columns values (Easy IF statement maybe?)
Hi All, I have a table like so... Order Date Date Secured 11/11/2022 null 12/11/2022 null null 14/11/2022 null 15/11/2022 13/11/2022 null I would like this result.... Order Date Date Secured Close Date 11/11/2022 null 11/11/2022 12/11/2022 null 12/11/2022 null 14/11/2022 14/11/2022 null 15/11/2022 15/11/2022 13/11/2022 null 13/11/2022 Many Thanks all I will accept your solution if correct tomorow morning! TaylorSolved2.5KViews0likes2CommentsComparing Two Month Column Values, then Arrow Conditional Formatting Based On Comparison
I have three months value in the table Feb,March,April based on the Attribute Wise . please find the screen shot below. i am trying to use conditional formatting for the below table. When MARCH MONTH values are less than FEB MONTH , it will show in conditional formatting Down Arrow. When MARCH MONTH values are Greater than FEB MONTH , it will show in conditional formatting UP Arrow. When APRIL MONTH values are less than MARCH MONTH , it will show in conditional formatting Down Arrow When APRIL MONTH values are Greater than MARCH MONTH , it will show in conditional formatting UP Arrow Can anyone please advise me on this? I am looking for support .Solved2.1KViews0likes1CommentCount total working days
I have 2 tables: attendance table: Id Name Date New id attendance Clock in Clock Out Absent 1 Lebron 6/1/2022 1-06 00:00:00 00:00 TRUE 1 Lebron 6/2/2022 1-06 07:00 15:00 Present 1 Lebron 6/3/2022 1-06 07:00 15:00 Present 1 Lebron 6/4/2022 1-06 07:00 15:00 Present 1 Lebron 7/3/2022 1-07 07:00 15:00 Present 1 Lebron 7/4/2022 1-07 07:00 15:00 Present 1 Lebron 7/5/2022 1-07 07:00 15:00 Present 1 Lebron 7/6/2022 1-07 07:00 15:00 Present 1 Lebron 8/1/2022 1-08 07:00 15:00 Present 1 Lebron 8/2/2022 1-08 07:00 15:00 Present 1 Lebron 8/3/2022 1-08 07:00 15:00 Present 1 Lebron 8/4/2022 1-08 07:00 15:00 Present 2 Ari 6/1/2022 2-06 07:00 15:00 Present 2 Ari 6/2/2022 2-06 07:00 15:00 Present 2 Ari 6/3/2022 2-06 07:00 15:00 Present 2 Ari 6/4/2022 2-06 07:00 15:00 Present 2 Ari 7/3/2022 2-07 07:00 15:00 Present 2 Ari 7/4/2022 2-07 00:00:00 00:00 TRUE 2 Ari 7/5/2022 2-07 00:00:00 00:00 TRUE 2 Ari 7/6/2022 2-07 07:00 15:00 Present 2 Ari 8/1/2022 2-08 07:00 15:00 Present 2 Ari 8/2/2022 2-08 07:00 15:00 Present 2 Ari 8/3/2022 2-08 07:00 15:00 Present 2 Ari 8/4/2022 2-08 07:00 15:00 Present And employee table : Id Name Date Payment per hour New id 1 Lebron 6/1/2022 1 1-06 1 Lebron 7/1/2022 1.25 1-07 1 Lebron 8/1/2022 1.75 1-08 2 Ari 6/1/2022 2 2-06 2 Ari 7/1/2022 2.5 2-07 2 Ari 8/1/2022 2.5 2-08 so i want to create a new column in the employee table of how many days an employee worked i want something like: Total Days Worked = CALCULATE(COUNTROWS(Attendance'), Attendance'[Absent] = "Present", '[New Id] = [New id Attendance])) so the new employee table should look like: Id Name Date Payment per hour New id Total days worked 1 Lebron 6/1/2022 1 1-06 3 1 Lebron 7/1/2022 1.25 1-07 4 1 Lebron 8/1/2022 1.75 1-08 4 2 Ari 6/1/2022 2 2-06 4 2 Ari 7/1/2022 2.5 2-07 2 2 Ari 8/1/2022 2.5 2-08 4Solved2.1KViews0likes2Comments