User Profile
MalyMajo
Frequent Visitor
Joined 5 years ago
User Widgets
Contributions
Re: Mapping of phases to dates
Hello, as per my understanding, calculated columns are less effective than measures. But in this case it is not possible because result is a string, or is it? Thanks, Majo -------------- EDIT: Never mind, I got it quickly. 🙂 Actuals:= VAR SumActuals = SUM(Actuals[Hours]) VAR vDate = MAX(Actuals[Date]) VAR vTable= FILTER ( Phases, vDate >= Phases[Start] && vDate <= Phases[End] ) VAR vResult = MAXX ( vTable, Phases[Phase] ) RETURN CALCULATE(SumActuals,Phases[Phase]=vResult)708Views0likes0CommentsMapping of phases to dates
Hello, I have a table of actual hours submitted to system and I would like to map the phases according to a custom table. Example of actual hours table: Resource Name Date Hours Resource1 5/1/2022 1 Resource1 6/30/2022 5 Resource2 6/30/2022 4 Example of phases table: Start End Phase 5/1/2022 6/15/2022 Phase1 6/16/2022 8/31/2022 Phase2 What is the most efficient approach to map these tables so in final I would see which hours belong under which phase? Should I merge somehow the phases table to calendar table in power query? Or using DAX? Please note that the table with actuals has 10,000+ rows, above is just a simplified example. Thanks, MajoSolved840Views0likes2CommentsAD group and resource hierarchy
Hello all, I have tabular data, which includes list of resources and the groups to which they belong. Is it possible to format the data somehow to always show the structure when a resources is filtered? Index Level Value 1 Level1 ProjectName_All 2 Level2 ProjectName_Team1 3 Level3 ProjectName_Team1_Offshore 4 Level4 peter.pan 5 Level3 ProjectName_Team1_Onshore 6 Level4 peter.parker 7 Level4 tony.hawk 8 Level2 ProjectName_Team2 9 Level3 ProjectName_Team2_Offshore 10 Level4 kendrick.lamar 11 Level4 tony.stark 12 Level4 slim.shady 13 Level4 cristiano.ronaldo 14 Level4 lionel.messi 15 Level4 alexander.ovechkin 16 Level3 ProjectName_Team2_Onshore 17 Level4 tony.hawk So for example if I would filter tony.hawk, I would like to see following table: Index Level Value 1 Level1 ProjectName_All 2 Level2 ProjectName_Team1 5 Level3 ProjectName_Team1_Onshore 7 Level4 tony.hawk 8 Level2 ProjectName_Team2 16 Level3 ProjectName_Team2_Onshore 17 Level4 tony.hawk Please note, that resources can be in multiple teams. Additionally, resources does not necessary need to always be on "Level4". It can be anything between Level3 and Level6. Naming convention of groups is always same - in each case it starts with "ProjectName".735Views0likes2CommentsTotal with SUM instead of MAX
I have an issue in my data model with calculation of totals. My inputs are following: - burnt effort per resource and day (in hours) - scheduling report (roster with resource details) - rate card with different loaded cost rate (LCR) per each activity type and country - exchange rate for each currency on monthly level - mapping table of countries and their currencies I am trying to get the cost calculated in USD, considering that the rates differ every month. The measure calculates properly on resource level, but not when summing on month level. I understand, that the reason is, that the measure calculates MAX of the rate and when all the monthly values are summed, only the highest exchange rate is considered. However, I cannot figure out how to change the measure to SUM the calculations on total level instead of calculating it separately. I have tried to follow the currency conversion example from DAX Patterns (link). Costs USD:=VAR AggregatedCostsInCurrency = ADDCOLUMNS( SUMMARIZE( Actuals, 'Calendar'[Year_Month], Actuals[Name] ), "@CostsAmountInCurrency",[Costs (internal)], "@Rate", CALCULATE( MAX(ExchangeRates[Rate])) ) VAR CostUSD = SUMX ( AggregatedCostsInCurrency, DIVIDE([@CostsAmountInCurrency],[@Rate]) ) RETURN CostUSD Here is the diagram view of my simplified data model: Any help will be appreciated.Solved1KViews0likes2CommentsReturn last non-blank string value of ticket (probably) with LASTNONBLANK
I am struggling with getting only the last non blank value for each ticket. In the Power Pivot measure, I have used a function LASTNONBLANK() , but the outcome was not reliable - probably because data model does not consider the original order of rows. Excel formula or VBA is not an option and Power Query is not very efficient because of big load of data. ticket step timestamp value 1 1 7/28/2021 04:15 PM 1 2 7/28/2021 04:23 PM a 1 3 7/28/2021 04:30 PM 1 4 7/28/2021 04:37 PM b 1 5 7/28/2021 04:44 PM 1 6 7/28/2021 04:51 PM 1 7 7/28/2021 04:59 PM 2 1 7/29/2021 01:51 PM a 2 2 7/29/2021 02:49 PM b 2 3 7/29/2021 03:47 PM c 2 4 7/29/2021 04:44 PM 2 5 7/29/2021 05:42 PM a 2 6 7/29/2021 06:39 PM For ticket "1", the returned value should be "b" (step 4) and for ticket "2", the returned value should be "a" (step 5). ticket value 1 b 2 aSolved
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.