User Profile
Molin
Helper I
Joined 5 years ago
User Widgets
Contributions
Calculating Payback period using DAX
Dear community, I am struggeling with at DAX measure to calculate (count) the payback period in months. Unfortunately, I have little flexibility in datamodel, meaning calculated columns is not an options. Working on a DAX measure, I need to count the months when "Cashflow Rolling" is bigger than "Total Investment" (see picture below). Both "Cashflow Rolling" and "Total Investment" is measures, with "Total Investment" having a REMOVEFILTERS on the DimDate table [YearMonth] is related to. In excel I would use =MATCH(), however I cannot find a similar measure in DAX. Thank you in advanceSolved703Views0likes3CommentsRe: Creating unique table without duplicate values
Hi DataNinja777 , Thank you so much for the quick reply and detailed explanation on the formula. I have tried to follow your steps and get unique values for all relevant [GuestCheckId], however the new calculated column "Latest_Reference" is blank for all rows. Can the datatype effect the statement? 'TransactionDetails'[PostingTime] is Date/Time format, while TransactionDetails'[Reference] is a String. Thank you so much for your time and sharing knowlegde. Best Regards895Views0likes0CommentsCreating unique table without duplicate values
Dear community, I am trying to create a calculated table using DAX to list the unique [Reference] times for each transaction. However, some transactions have more than one [reference] time and I would like the list only the latest based on [PostingTime]. So far I have managed to create the table, however filtering on one unique row is causing problems. PU Times = CALCULATETABLE ( DISTINCT ( SUMMARIZE ( 'TransactionDetails', 'TransactionDetails'[Reference], 'TransactionDetails'[GuestCheckId] ) ), ''TransactionDetails''[ObjectNumber] = 999000009, DISTINCT ( 'TransactionDetails'[GuestCheckId] ) ) The large 'TransactionDetails' table looks like this, filtered on [ObjectNumber] and a single transaction As I am using incremental refresh, it prohibit me from "removing doublicates" in Power Query. Thank you very much in advance.Solved938Views0likes5CommentsRunning Power BI Desktop on Snapdragon X Series
Dear community, Is Power BI desktop fully compatible with the newest version of Snapdragon X ARM Series chips from summer 2024? The prospect of the new chip setup sounds promising but before getting a new PC I want to make sure PBI desktop can run smooth and without limitations. Also do you have any experience in having 32gb vs 16gb RAM? The largest models I currently have is around 1,5GB size. Thanks in advanceSolved20KViews0likes5CommentsRe: Calculating groups
Hi Eason, Thanks a lot for the help. It all make sense, except the "Online Sales" line as I cant get it to subtract the [Providers Sales]. Do I need a RemoveFilter to calculate the [Providers Sales] or how do I get it to link with the "Online Sales" row? Thanks in advance.816Views0likes0CommentsCalculating groups
Dear community, I am facing a challenge to group sales from a fairly simple table. The table have total sales generated on both "OrderType" and "SalesChannel" which sums up to the same. However I would like to change the setup with the following needs, preferably through dax (running direct query): "Dining-In Sales" should only appear once "Pick-Up Sales" should be zeroed "Online Sales" should be calculated as follows: Online Sales - all Providers Sales The decired result you can see on the right hand side. Thanks in advance.886Views0likes2Comments
Data Privacy
Microsoft Fabric Community and Privacy
To learn more about how we manage your data, please review the Microsoft Fabric Community Data Privacy guide.