clustered column chart
12 TopicsWriting measure to show multiple visuals on the same chart with one slicer
Hello, I am sorry to keep posting looking for a solution on this. I am trying to write a measure. I have tried multiple methods but cant get anything to work. I would assume having two different measures on the same visual would work. I have two tables (Table1 and Table2). My goal is to use one slicer and show multiple visuals from the same table on the same chart. For example, if a month is selected, I want to show data (filtered with different conditions) for that month, and the month most recent to the selected month. Column 'Table1'[Month] is linked to Column 'Table2'[Month] with a one to many relationship (Table2-one, Table1-many). Then I have a slicer that uses column 'Table2'[Month]. The visual for my current month works, but now I am trying the add the data to the same visual for its previous month. For the previous month, If the user selects a month with the slicer, I want to save the [Previous Month] associated in Table2 column as text. So if 24-Jun is selected, I want to save "24-May" as text. Then I want to filter and count the number of rows in Table1 where [Month End] = the saved text & Type = "Task". So in this example, I would count the number of rows in Table1 where Table1[Month End] = "24-May" & Type = "Task", and this would return 1. Table1 ID Status Date Rank Previous Status Month Type Group Previous Month A Normal 3 No previous 24-Mar Task <0 No previous B Normal 3 No previous 24-Mar Task 1 to 5 No previous C Not Normal 3 No previous 24-Mar Task 1 to 5 No previous D Not Normal 3 No Previous 24-Mar Not Task 11 to 15 No previous A Not Normal 2 Normal 24-May Task 6 to 10 24-Mar B Normal 2 Normal 24-May Not Task 6 to 10 24-Mar C Normal 2 Not Normal 24-May Not Task 6 to 10 24-Mar D Not Normal 2 Not Normal 24-May Task 6 to 10 24-Mar A Not Normal 1 Not Normal 24-Jun Task 1 to 5 24-May B Not Normal 1 Normal 24-Jun Task <0 24-May D Normal 1 Normal 24-Jun Task <0 24-May E Normal 1 24-Jun Task 1 to 5 24-May Table2 Date Rank Month Next Date Rank Previous Month 3 24-Mar 4 2 24-May 3 24-Mar 1 24-Jun 2 24-May Sample of visual I'm trying to create: Measure that doesn't work for previous month: (I keep getting blank when selecting a current month) VAR SelectedMonth = SELECTEDVALUE('Table2'[Month]) VAR PreviousMonth1 = CALCULATE( MAX('Table2'[Previous Month]), FILTER( ALL('Table2'), 'Table2'[Month] = SelectedMonth ) ) VAR CountRows1 = CALCULATETABLE( 'Table1', FILTER( ALLSELECTED('Table1'), 'Table1'[Month] = PreviousMonth1 && 'Table1'[Type] = "Task" ) ) RETURN COUNTROWS(CountRows1) Measure works for selected month: VAR SelectedMonth = CALCULATE( MAX('Table1'[Date Rank]), FILTER( ALL('Table1'), 'Table1'[Month] = SELECTEDVALUE('Table2'[Month]) ) ) VAR _tablecalculation = CALCULATETABLE( 'Table1', ALLSELECTED('Table2'), 'Table1'[Date Rank] = SelectedMonth, 'Table1'[Status] = "Not Normal", 'Table1'[Previous Status] = "Not Normal", 'Table1'[Type] = "Task" ) RETURN COUNTROWS(_tablecalculation) Any help in the right direction is definetly appreciated!Solved1.3KViews0likes4CommentsCreate count column visual based on column slicer and column group on x-axis
I am trying to write a measure to create a dynamic visual. I have the following table below as a single table in my file. I want the user to be able to select a month. If the user selects June. Then I want previous month to be used in the measure (This would be May since this is the since 1 + the date rank gives the group of the previous month). Then I want the measure to count the number of rows where multiple filter conditions are met. I want to count rows where Dank rank =2, Status and Previous Status = "Not Normal" and where Type = "Task". So this would return a 1 because there is only one row where all conditions are met. But I want the measure to update based on what the user selects as the current month. If the user does not select a month, then I want to show blank for the measure. Right now, I am able to get the correct count, but when I group the visual by the "Group" column on the x-axis, I get the same number for each group rather than just the count for that specific group. (Table and current dax formula I have is below). Thank you for any help on this. ID Status Date Rank Previous Status Month Type Group A Normal 3 No previous 24-Mar Task <0 B Normal 3 No previous 24-Mar Task 1 to 5 C Not Normal 3 No previous 24-Mar Task 1 to 5 D Not Normal 3 No Previous 24-Mar Not Task 11 to 15 A Not Normal 2 Normal 24-May Task 6 to 10 B Normal 2 Normal 24-May Not Task 6 to 10 C Normal 2 Not Normal 24-May Not Task 6 to 10 D Not Normal 2 Not Normal 24-May Task 6 to 10 A Not Normal 1 Not Normal 24-Jun Task 1 to 5 B Not Normal 1 Normal 24-Jun Task <0 D Normal 1 Normal 24-Jun Task <0 E Normal 1 24-Jun Task 1 to 5 Measure = VAR SelectedMonthRank = CALCULATE( MAX('Table'[Date Rank]), ALLSELECTED('Table'[Month]), ALLSELECTED('Table'[Group]), 'Table'[Month] = SELECTEDVALUE('Table'[Month]) ) VAR PreviousMonthDateRank = SelectedMonthRank + 1 VAR _tablecalculation = CALCULATETABLE( 'Table', FILTER( ALL('Table'), 'Table'[Date Rank] = PreviousMonthDateRank && 'Table'[Status] = "Not Normal" && 'Table'[Previous Status] = "Not Normal" && 'Table'[Type] = "Task" ) ) RETURN COUNTROWS(_tablecalculation)Solved752Views0likes2CommentsChallenge Creating Cumulative Chart in Power BI with Distinct Token Count
In a table named 'token_ativos' with a column named 'created_at' for dates and a 'token_id' column containing the IDs of active tokens, where the 'created_at' column represents the creation date of the active tokens. In Power BI, I need to create a chart that provides the sum of active tokens for each month. For example, if there were 2 active tokens in February and 2 more were created in March, the chart should display 2 for February and 4 for March. Please create a DAX expression that gives me this cumulative total when placed on the X-axis with 'created_at'. When I place the distinct count of 'token_id' on the Y-axis and 'created_at' on the X-axis, the chart only returns the count of tokens created each month. I need the cumulative count instead.Solved1.1KViews0likes2CommentsHow to prevent the measure result splitting over all the departments in a clustered column chart?
Hi guys, I have created a clusterd column chart with the departments on the Axis. The value of the clusterd column chart is a measure where I calculate the count of unique values in the column "Versies.Id" of the table "MKA", but only for those rows where the column "VullingProductTbbRubricering hh" is not blank. The measure is: ALLE-GII = CALCULATE( DISTINCTCOUNT(MKA[Versies.Id]), MKA[VullingProductTbbRubricering hh] <> BLANK() ) What I want now is that the total result of the measure "ALLE-GII" will be added only to one department "GII" and will not split over alle the different department. How can I do that? See picture below for how the column chart is looking right now.726Views0likes1CommentHow to create clustered column chart containing think cells
Hello, I am trying to create a visual that should look like the below print screen, however I am not able to find a visual that shows similar outcome. The visual should show the sales of the 5 products (A-E) for 2021 & 2022 and the thinkcell should include the % vs. PY. I have created the DAX measures to calculate seperately the 3 values (2021 sales, 2022 sales & %, however I cannot find any visual with the above outcome. Do you have any idea if it`s possible in PowerBI to have a similar visual? Any help would be highly appreciated.Solved2.7KViews0likes2CommentsYTD on the end of clusterd column chart (one chart)
Hello, team. I would like to know how can I put the YTD on the same chart of the other values. I tried following these guidelines but it didn't work: Solved: Re: Weekly graph data and YTD data in one chart - Microsoft Power BI Community Thank you in advance for your help 🙂Solved1.6KViews0likes3CommentsMeasure that considers the same period over several years
Is it possible to calculate a measure (let's say SALES, Total Orders, etc... nothing special) that considers the same range of days through different years. The idea is to have a Cluster Column Chart that has the Year on the X-Axis but, if my measure only considers January and February of Year t, I want it to do the same for Year t-1, t-2 and so on.Solved577Views0likes2Comments