tip & tricks
12 TopicsHow to Show Delta Between TODAY() and Modified Date formatted as Days in Dax
Hi Friends, I have requirement to how Delta Between TODAY() and Modified Date formatted as Days in the Card in the report. And i want a slicer to select below as Input Number of Days Since Modified” as a drop-down selection that buckets day thresholds as follows: < 30 Days > 30 Days and < 60 Days > 60 Days and < 90 Days > 90 Days Can you please help me how to create dax measures or columns.Solved1.1KViews0likes3CommentsMy Power BI Report builder is Not validating DAX Parameters in the Dataset
Hi Folks I have Power BI Paginated report which is Working fine. It have ssas as source. There is No of Pages of DAX Code which have spaces and tabs. I have trimmed spaces and tabs to fit into Report dataset Queypane. Now i am facing strang error The query contains the 'M' parameter, which is not declared. The M is First Parameter in the DAX. I have other 8 Paramerters. I have changed paramters and conditions into separate line and removed spaces and tabs. Still unable figure out what is the cause. The same code is working fine DAX Studio with Paramters. Can you please help how to do that if i am missing anything. Can you please help any other proper website which remove spaces and tabs. The old report also have same parameters its working fine. New changed code is getting this error. Regards741Views0likes1CommentHow to calculate Last Year Sellout on 4-4-5 calendar?
I am currently in 4-4-5 calendar and need to calculate Last Year's Sellout. I have been able to calculate the weekly last year sellout, however I need the daily value. This is the current formular I got: "Sell Out LY = VAR __Last445Week = SELECTEDVALUE ( 'Date'[Year (4-4-5)] ) - 1 & MID ( SELECTEDVALUE ( 'Date'[Week (4-4-5)] ), 5, 4 ) VAR __Result = CALCULATE ( [Sell Out CY], FILTER ( ALL ( 'Date' ), 'Date'[Week (4-4-5)] = __Last445Week ) ) RETURN __Result" And I get the following result: Any help on how to split from weekly Last Year sellout to Daily Last Year sellout 4-4-5, is highly appreciated.635Views0likes1CommentCalculated Column to Check if Field CONTAINS Value From Another Table Column
Hi all, I am trying to create a calculated column to check if a column contains value from mapping table column, if not, then to check another column whether it contains value from mapping table column. Let me explain better: I have 2 tables: Table1 is the main table containing lots of records and columns about transactions Table2 is used for mapping, contains more detailed information about products (pieces) So, I would like to create a calculated column in 'Table1' to check (in this order): IF 'Table1'[Piece] Contains any value from 'Table2'[Piece], then return the value from 'Table2'[Piece] If this criteria is not met, then I would like to check the same rules from the Title: IF 'Table1'[Title] Contains any value from 'Table2'[Piece], then return the value from 'Table2'[Piece] If neither one is met, I would like to return 'Table1'[Piece], even if its left blank. Here is still the desired output: Then I would like to create a relationship between the created column and 'Table2'[Piece], to get more detailed information about the products. Any tips from anyone? If there are more information needed, please don't hesitate to ask.Solved3.1KViews0likes2CommentsSum after a date
Hi, I'm trying to make a sum if formula (this is how I would solve it in Excel) or something similair in powerbi. I couldnt find a formula for or something else for this. See the picture below for more clarity. I have the spend per vendor per month in a different table. With this data I want to sum the the spend after the enddate per vendor. So something like IF[spend booked after enddate] = 'yes', Sum(spend per vendor month) after enddate. I can't get this working. Hope someone can help, Thanks in advance!778Views0likes2CommentsHelp with if Function in DAX
Hi all, I am trying to show number of actions needed for my team. The idea is to create a DAX (or custom column if needed) to show number of items where some actions are needed. Data table illustrated as below: Here are the rules: Main rule is: Only from items where Status = "Open" or "Cancelled" or "Pending" Additionally: Information Request Status = "Waiting" Group = "Sales" So based on the table below, the measure should show 3 actions needed: (On 1st row no action needed, because "Status" does not match the main rule) Any tips for the issue? If more information is needed, don't hesitate to ask. Br Jere AallikkoSolved1.4KViews0likes5CommentsSame ID with different reference , if one of them are false then all false
Hello, I trie to display data who have same IdRetour but different reference , the reference Guaranty is false or true, i want to the same IdGroup if one of the reference of the IdRetour then all become False. expected : IdRetour Reference PriseEnGarantie 107 8716774182 False 107 87167728690 False 107 8716774182 False I'am in Direct Query , someone can show me the path to the solution please ? Thank you582Views0likes1CommentLast Date for one client meeting in a table with duplicate data
Hello, I want to know if there is a formula who can do what i want. Get the last date of meeting for the same client ? like my exemple i want to have just the last date in my table : thank you for the futur answer. Great day1.1KViews0likes3CommentsCumulative total by multiple column
Hi all, i need cumluative/running total of an table with multiple columns, I have try this formula but that want be correct: Total = CALCULATE(SUM('Table'[Value]), FILTER(ALLEXCEPT('Table', 'Table'[Business ], 'Table'[Business1 ], 'Table'[Business2 ]), 'Date'[Date] <= EARLIEST('Date'[Date]))) when i select 2019 Q2 ,business i need cummulative total of the value Anyone who can help me is very grateful Table looks like this Business Business1 Business2 year Month Quarter Value A C E 2019 Jan Q1 10 B C F 2019 April Q2 15 B D E 2019 July Q3 12 A D F 2019 Oct Q4 12 B C E 2020 Jan Q1 15 A C F 2020 April Q2 20 A D E 2020 July Q3 231.4KViews0likes2Comments