tips
19 Topicsrows split, but merging response results within table -- happy it repeats
Is there a measure that would be able to perform the "overall" result in red, from the associated table data. I would want it to be visual in the table, happy for the repeats, as having consolidated summary is useful when assessing. thanks, [Table] Campaign Number Responded View campaign count campaign&view responded type count view&responded type count overall_show across all rows - merged result 10021 Rep1 15/05/2025 Agreed 9 10021Agreed 6 Agreed 6 Agreed 6, Disagreed 2, Incomplete 1 10021 Rep2 18/05/2025 Agreed 9 10021Agreed 6 Agreed 6 Agreed 6, Disagreed 2, Incomplete 1 10021 Rep3 21/05/2025 Agreed 9 10021Agreed 6 Agreed 6 Agreed 6, Disagreed 2, Incomplete 1 10021 Rep4 21/05/2025 Disagreed 9 10021Disagreed 2 Disagreed 2 Agreed 6, Disagreed 2, Incomplete 1 10021 Rep5 26/05/2025 Agreed 9 10021Agreed 6 Agreed 6 Agreed 6, Disagreed 2, Incomplete 1 10021 Rep6 29/05/2025 Agreed 9 10021Agreed 6 Agreed 6 Agreed 6, Disagreed 2, Incomplete 1 10021 Rep7 30/05/2025 Disagreed 9 10021Disagreed 2 Disagreed 2 Agreed 6, Disagreed 2, Incomplete 1 10021 Rep8 30/05/2025 Incomplete 9 10021Incomplete 1 Incomplete 1 Agreed 6, Disagreed 2, Incomplete 1 10021 Rep9 30/05/2025 Agreed 9 10021Agreed 6 Agreed 6 Agreed 6, Disagreed 2, Incomplete 1 12524 Rep1 12/03/2025 Disagreed 1 12524Disagreed 1 Disagreed 1 Disagreed 1 9931 Rep1 25/01/2024 Agreed 2 9931Agreed 1 Agreed 1 Agreed 1, Incomplete 1 9931 Rep2 27/01/2024 Incomplete 2 9931Incomplete 1 Incomplete 1 Agreed 1, Incomplete 1Solved1.4KViews0likes7Commentsdummy table, and to introduce a condition so only return subset of rows
I have created an offshoot dummy table but only want to include a certain subset - say the original table has 20000 rows, I just want to return around 500 that meet a set criteria. Would the table be able to provide for that condition, incorporating SELECTCOLUMNS ? I've tried to play around with the below but can't get it to accept. Streamlined version below. Looking for it to only return those where --- IF 'Table'[Company]="Company4" DUMMYTABLE = SELECTCOLUMNS( Table, "Ref", 'Table'[Reference], "From", 'Table'[From], "To", 'Table'[To] )Solved712Views0likes2CommentsPrevious Day Value
I have a date dimension table that has indicator column for working and non working days. The date dimension table has an active relationship with a report fact table. The report fact table consists of daily report only for working days. How do I create a DAX that returns me the value from previous working days for non working day? (e.g. The stock price for portfolio from previous working day will remain the static during non working day) Any ideas and solutions are greatly appreciated!!Solved1.4KViews0likes4CommentsGroup values
Hi everyone, I would like to create a regroupment of KPI in different "bloc" for cleaning the analyse of dashboard. I mean, one bloc for - "N year" with KPI "Semaine" + " N date" - On other "N-1 year" with "MEC N-1" + "N-1 date" etc. - Etc. The aim is to compartiment for a good view. I tried many ways but it didn't work.. Your help is precious. Thank you in advanceSolved533Views0likes2CommentsLast non blank month with context issues
Hi! I have issue with below measure. It works when there are no additional columns that would "break down" the Actual/Plan/Forecast measure. But as soon as there is such column together in the matrix with below, the values are wrong. I've noticed it's because the NO(ISBLANK()) gets evaluated separately for every "category" it's broken down into, instead on the whole measure. Below is the representation what the measure does. . Year Period Job Category Raw Amount LastNonBlankPeriod 2023 11 Finance 5 11 2023 11 Sales 10 12 2023 12 Finance BLANK() 11 2023 12 Sales 11 12 Because Finance is BLANK in 2023, it takes period 11 into account for this specific category. Where my goal is it should always be 12 in below case as there are some values for period 12. And my values from below measure, if I remove period split will be: Finance 5, Sales 11. Instead of Finance 0, Sales 11 How can I fix the measure? Headcount Switch Yearly = SUMX( VALUES('X_Calendar Period'[F_YEAR]), VAR CurrentYear = 'X_Calendar Period'[F_YEAR] VAR LastActualsPeriod = CALCULATE( MAX('X_Calendar Period'[F_YEAR_MONTH_NO]), FILTER( ALL('X_Calendar Period'), 'X_Calendar Period'[F_YEAR] = CurrentYear && NOT(ISBLANK([Headcount By Heads])) ) ) VAR LastForecastPeriod = CALCULATE( MAX('X_Calendar Period'[F_YEAR_MONTH_NO]), FILTER( ALL('X_Calendar Period'), 'X_Calendar Period'[F_YEAR] = CurrentYear && NOT(ISBLANK([FCST Headcount By Heads])) ) ) VAR LastPlanPeriod = CALCULATE( MAX('X_Calendar Period'[F_YEAR_MONTH_NO]), FILTER( ALL('X_Calendar Period'), 'X_Calendar Period'[F_YEAR] = CurrentYear && NOT(ISBLANK([PLAN Headcount By Heads])) ) ) RETURN SWITCH( TRUE(), CurrentYear <= [Actuals Year], CALCULATE([Headcount By Heads], 'X_Calendar Period'[F_YEAR_MONTH_NO] = LastActualsPeriod), CurrentYear = [Forecast Year], CALCULATE([FCST Headcount By Heads], 'X_Calendar Period'[F_YEAR_MONTH_NO] = LastForecastPeriod), CurrentYear = [Plan Year], CALCULATE([PLAN Headcount By Heads], 'X_Calendar Period'[F_YEAR_MONTH_NO] = LastPlanPeriod), BLANK() ) )617Views0likes2CommentsRecord only display last 3 years (complete cycles) value
Hi. I have created a sample table below for reference. I need to create a line chart. How can I create a measure to only display the last 3 years of records (complete cycles) from the current year? Thank you in advance. Regards, NickzNickz .Solved2KViews0likes7CommentsFilter context doesnt apply with custom date slicer
Hello everyone, I have implemented a new Date Picker following this quick tutorial in order to extend the possibility of filtering my data. However, I am struggling with calculating measures for the previous period selected in my Date Picker. First, here is how my model is built: here is the measure I want to calculate in a modified filter context: here is a quick example of how my Dateslicer selection is built: I then put the "Period" column in a slicer in order to select the "Last calendar week" option and then filter the Datedim table in the corresponding manner and to replace the classic between date slicer. However, since I have implemented this configuration, I am not able to calculate the previous_period_measure with this original formula (startOfPrevPeriod and endOfPrevPeriod being out of the data range filtered with the slicer) : Previously, without the DateSlicerSelection, the DateDim[FullDateAlternateKey] was in a between date slicer and everything was working fine. Despite the fact that I have absolutely no idea of how to fix it, I have made few observations: I am able to get the very first Date of my DimDate table even with it is filtered with he following formula : Modifying my measure calculation with the following formula, I got the result for the current period selection and not the previous one: Please, does someone has an idea on how to fix this problem ? Best Regards, Melvin494Views0likes0CommentsCreate Filter from Columntitle
Hi, I have 6 different Customer types for 800 different entities over 4 years. For each entity the Customer Types sum up to 100%, and I have worked out the actual numbers of customers for each Customer Type per Entity. The aim is build a line chart showing the sum of each customer type across years. So far so good. However, I would like to be able to choose 1 Customer Type at a time. In essence a sliver. where I can choose customer Type 1 -6 and the line chart shows the change a Customer Type has undergone over time. Say for example, I wanted to check for "seasonal workers", then I would see an uptick during the summer months but in general lower than normal number during the Covid Lockdowns. I noted that it is possible to create a hierarchy of Customer Types and put that hierarchy into a Slicer. But because we have 6 different Columns with different Customer Type Titles and how the number of specific customer type per entity, the hierarchy filter would only show numbers. What else can I do? Example how it looks: Needed is Slicer where I can choose between: Entity Resident Non-Resident Saisonal Full Time Part-Time Other Parameters come to mind as well. But I did not manage to get the parameter working. I created a measure with the sum of each entity and would then create a parameter. But the visual remains empty, and I guess, what the parameter does is count the items in the fields. But while creating sums of the customer types, it can't count anything. So I am not sure what to do. Entity Resident Non-Resident Saisonal Full Time Part-Time Other 10 44 6 3 10 17 20 12 35 10 10 30 10 5 13 65 35 0 0 0 0 15 47 26 17 2 6 2 17 51 49 0 0 0 0 19 33 36 7 20 4 0Solved1.1KViews0likes3CommentsNight shift (logic, calculation)
Hi everybody, I'm looking for a solution, but I can't find it. I would like to know the time worked. Info: - People work in the morning, afternoon and night. Overtime is also possible. - Thousands of posts are made in a day, that's thousands of time data. So there is not only a beginning and an end. - Morning shift: 06-14 (can be overtime: 02-14, 06-18) - Afternoon shift: 14-22 (can be overtime: 10-22, 14-02) - Night shift: 22-06 (can be overtime: 18-06, 22-10) MIN - MAX works in the morning and in the afternoon, because the time data comes one after the other. It does not work at night because it is separate, e.g.: 0:00 (start) -> (end) 6:00 + 22:00 (start) -> (end) 0:00. This is a MIN - MAX 24h. time worked = VAR balans = CALCULATE ( MAX (EVENTHistory[hour]), FILTER ( ALLSELECTED ( 'EVENTHistory' ), EARLIER (EVENTHistory[worker]) = 'EVENTHistory'[worker] ) ) - CALCULATE ( MIN (EVENTHistory[hour]), FILTER ( ALLSELECTED ( 'EVENTHistory' ), EARLIER (EVENTHistory[worker]) = 'EVENTHistory'[worker] ) ) RETURN FORMAT ( INT ( balans * 24 ), "00" ) & ":" & FORMAT ( INT ( MINUTE ( balans ) ), "00" ) & ":" & FORMAT ( INT ( SECOND ( balans ) ), "00" ) Thank you in advance for your help.1KViews0likes2Comments