get help
38 TopicsMatrix visual show two columns as Total and % total along with other columns
I have a matrix visual shows the country as rows, segments as column and the grandtotal. I need to add one more column beside total as total %. I dont need to add % for all the segments only as a column beside grandtotal. Below is the visual I need to add % as a seperate column as a last column in the matrix. If I create a measure and add it, it is adding for all segments I dont need that to all the segments. I need both total and % columns at the end. Can anyone help on this or any suggestion or workaround? Thanks SriSolved1KViews0likes5CommentsHelp with measure
I am trying to calculate the volume/Sales at plant level. Example below , so the total volume sold for AM Sports Depot reppeats in each line for sales plant column the example above uses this formula listed below:- Sales Plant = CALCULATE( SUM(STG_INVENTORY_PROGRESSION[Volume Sold]), ALLEXCEPT( STG_INVENTORY_PROGRESSION, STG_INVENTORY_PROGRESSION[COMPANY_NAME], STG_INVENTORY_PROGRESSION[REGION_NAME], STG_INVENTORY_PROGRESSION[PLANT],STG_INVENTORY_PROGRESSION[YEAR_MONTH] ) ) I am Trying to create a measure which would give similar results. the new formula I am trying to recreate is given below:- here geography name in the above formula = Plant in the below Sales Plant = CALCULATE( [Ticket Volume Delivered Qty], ALLEXCEPT('1 - Company', '1 - Company'[Company Name]), ALLEXCEPT('3 - Geography', '3 - Geography'[Geography Region Name], '3 - Geography'[Geography Name]), ALLEXCEPT('Date', 'Date'[Year/Month Name Short]) ) but the results I am getting with the second formula are as below. I want the value 722897.68 for Sales plant for AM sports depot to repeat down like how it is in the above image.Solved1.1KViews0likes4CommentsIndependent (detached) Table for 3-year rolling trend
I am trying to get a 3-year trend for a measure using an independent detached year dimension. The below is my logic: Fact - has a year column YearDimension - has a year column DetachedYearTable - has a year column DetachedYearTable Year is used in a single select slicer. 3-year trend measure is calculated as : Measure = SUM(Some Fact Table Column) RollingTrendMeasure = CALCULATE(Measure, Fact[Year] <= MAX(DetachedYearTable[Year] && Fact[Year] > MAX(DetachedYearTable[Year]-3) Now when I draw a bar graph with RollingTrendMeasure on y-a axis and YearDimension[Year] on another x-axis I see only 3 years based on slicer selection i.e selected year + past 2 years. But instead if I use Fact[Year], I get all the years from the fact. Since the YearDimension is connected to the Fact on the Year, shouldn't I be seeing only 3 years ? Why isn't the fact table filtered ? Also I just one value. So basically by graph is a straight line. I am trying to understand how this works, although I get the intended output by using YearDimension[Year]394Views0likes1CommentDAX measure for price of bike in the last month of selected period
Hi, If i have 2 or more Bike names and and i want to select the prize for last month of the selected period. period Bike prize Name 1.2023 2,35,599 Royal Enfield 2.2023 2,34,999 Royal Enfield 3.2023 2,35,999 Royal Enfield 4.2023 2,33,599 Royal Enfield 5.2023 2,35,499 Royal Enfield 6.2023 2,36,999 Royal Enfield 7.2023 2,36,909 Royal Enfield 8.2023 2,36,999 Royal Enfield 1.2023 1,28,478 BMW 2.2023 1,28,999 BMW 3.2023 1,26,463 BMW 4.2023 1,23,599 BMW 5.2023 1,26,849 BMW 6.2023 1,26,544 BMW 7.2023 1,27,999 BMW 8.2023 1,25,899 BMW For Example:- If i selected Royal enfield bike and the period is between 1.2023 to 5.2023 then the out put should be the last month of selected period. 5.2023 2,35,499 Royal Enfield Can someone help me to get the DAX formula for the above issue. Thanks in advance.Solved675Views0likes3CommentsUse count with measure
Hi guys, I have a doubt about something that I believe is simple. I created a conditional measure in DAX to understand if the product passed the reorder point or not. # Status Stock = SWITCH( TRUE(), SUM(fStock[STOCK]) >= [Order Point], "Ok", SUM(fStock[STOCK]) >= [Order Point] * 0.8, "Attention", "Request Product") I would like to create a chart that contains the count of each of the 3 statuses. But when trying to use the Count function, it is not allowed to include measures, only columns.589Views0likes2CommentsSummarize DAX help
Hello I have the following visual Measure=Pictures per camera / Accidents per segmet. How do i write the measure to summarize the data based on Segment. I am expecting the result as Segment Camera Pictures per Camera Accidents per segment Measure A1_14b 7631 4302 4 1075.50 A1_17 1019 6969 9 1163.11 1020 3499 A10/I_01 9024 14993 12 1249.42 Please help me how to write the measure to summarize based on Segment. Thanks in advance.Solved585Views0likes2CommentsUrgent Help : Remove filter from a MEASURE using DAX
I need to remove a filter from a measure. I have 3 tables - REPO, ISSUES and DATES I have a column chart X is district and Y is this measure ( Issue Rate ) In Report table - DAX 1 - measure Issue Rate = CALCULATE( DIVIDE( COUNTA(ISSUES[type]), DISTINCTCOUNT(REPO[id]))) DAX 2 - CALCULATED COLUMN TO FILTER THE CURRENT WEEK Latest Week Check = IF(AND(REPO[Week]<LOOKUPVALUE('Dates'[Fiscal Week],'Dates'[Day],REPO[Today]),REPO[ Week]>=DATE(YEAR(REPO[Current Week]),MONTH(REPO[Current Week]),DAY(REPO[Current Week]))-7), "YES", "NO") To filter the column chart to show the current week data I have added this caculated colum to filters pane and Selected "YES" Now, I am creating a new tool tip that removes Latest Week Check filter and show the entire data for all the weeks TOOL TIP X is REPO[Week] Y is Issue Rate All (New measure to remove the filter) Issue Rate All = calcualate (REPO[Issue Rate], Removefilters[repo[Latest Week Check]) I have tried different variations for this ISSUE RATE ALL DAX - REMOVEFILTERS, ALL, ALLEXCEPT. Nothing seems to work I am not sure what column to use also. Let me know where I am going wrong or any other workarouds. Thank you so much.Solved833Views0likes2CommentsHow to remove a filter using DAX?
I have a column chart x is week and Y is a measure. I have a calculated column to filter and show the last completed week's data. Latest Week Check = IF(AND(REPORT[Fiscal Week]<REPORT[Current Week],REPORT[Fiscal Week]>=REPORT[One Week Ago]), "YES", "NO") Now, I need a tool tip that shows all the historical data removing the last completed week fiter. I tried writing a new dax for Y axis to remove the Latest Week Check filter added to the visual using, Rate All = CALCULATE(CALCULATE(REPORT[measure]), REMOVEFILTERS(REPORT[Latest Week Check])) But it does not seem to work I tried ALL and ALLEXCEPT, nothing seems to work. What should I do to remove the Latest Week Check for the tool tip?759Views0likes2CommentsNeed to filter a table and currently only have a measure in my table visual
In my sales table I created a percentage measure that can give me the percantage of sales for each category the code is below: % = VAR total_count = CALCULATE ( SUM ( Sales[Units] ) , ALL ( Sales[Product Category] ), ALL ( Sales[Sold Date] ), ALL ( Sales[Delivered Date] ) ) RETURN (DIVIDE(SUM(Sales[Units]),total_count)) * 100 Next step was to display all my columns in a table with the % field e.g. product category units % latest sold_date latest delivered_date mobile phones 10 16.67 19/01/2022 01/02/2022 televisions 5 8.33 19/01/2022 02/02/2022 desktop computers 15 25 21/01/2022 01/02/2022 laptops 20 33.33 20/01/2022 03/03/2022 games consoles 10 16.67 22/01/2022 04/02/2022 Next I want to filter the above to show only those product categories where % > 10%. How would I be able to achieve this? UPDATE: Have solved how to do the above you just use the measure in the filter pane, but have another requirement whereby need to have an others group for % under 10% so if someone can show me how to do this I have seen other examples and it looks like may need a calculated table. I know the above example only shows one category under 10% but the above is only dummy data.Solved582Views0likes1Comment