slicer
141 TopicsTable visual to show all rows of related table except selected
I have 2 three tables that are joined BU[BUID] 1<->* BUPR[BUID] , BUPR[PRID]*<->1 Process[PRID] (because the relationship between BU and Process is many to many). I want to create a dashboard that has 2 table visuals and 1 slicer. The user can select a BU[Name] from the slicer and I want table 1 to display all Process that are related to the selected BU. I want the second table to show Process[Name] and BU[Name] for every other BU not selected in the slicer. So far I can only solve the first table if I make the relationships between the 3 tables bi-directional (which I know is not best practice) and cannot solve the second table despite trying several different dax measures. The second part of my problem seems similar to the solution provided in ‘Filter a table visual based on a slicer selection’ but this solution doesn’t have to traverse three different table. It seems like it should be possible but I have tried a lot of different ways and I can’t figure it out. Any help would be appreciated. Here are some example tables I used to test several unsuccessful attempts. BU: BUID Name 1 BU1 2 BU2 3 BU3 4 BU4 BUPR: BUID PRID 1 2 2 2 2 3 3 4 4 1 4 3 Process: PRID Name 1 Process1 2 Process2 3 Process3 4 Process4 Here is what I would like the result to be:Solved1.2KViews0likes7CommentsMeasure as a slicer
I have three tables in my Power BI model: Sales Order Fact Order Date Customer All these tables are properly connected. I’ve created a few DAX measures based on them: Number of Customers with Order amount > $100 Number of Customers with Order amount ≤ $100 The amounts are grouped Year-to-Date (YTD). So if the user selects August, the total amount is calculated from January 1st to August 31st. All calculations are working correctly. However, I now need to create a slicer to allow users to filter between "> $100" and "≤ $100". This is where I'm stuck. I created a measure-based flag, but I have to manually apply the filter to each visual — and this report has many visuals. Also, I’m unable to apply the measure as a filter on Card visuals, which is a limitation. Is there any alternative approach to creating a slicer that dynamically filters visuals based on "> $100" or "≤ $100" orders? Expected output The Customer table contains fields such as Name, Address, and customer Number. The Order Date table is a standard date dimension with fields like Order Date and Month, Year. The Sales Order Fact table includes details like Order Amount, Quantity, and other transaction-level data. The report includes multiple visuals — such as cards, tables, bar charts, and several slicers. I want to implement a filter where: If the user selects "> 100", the report should display data only for customers whose total order amount is greater than $100. If the user selects "≤ 100", the report should show data only for customers whose total order amount is $100 or less. This filter should apply across the entire report to all visuals consistently.Solved1.7KViews1like7CommentsCreate a slicer with a Mesure
Hi everyone ! I'd like to create a slicer segment with a “rate” (measure) that lets you choose a rate range. For example: Here I can select rate from 0% to 73% but it can be 5% to 13% also. I know it's easily possible in Tableau but Power BI it seems no. Can you give me a tips in DAX to do that please ? You need to know, I don't manage the dataset (power query) because it managing by IT department. Thank you a lot and have a good day, LDSolved1.1KViews0likes5CommentsUrgent Help: How to rename the 'select all' option to say 'all products' in a slicer
Hello, I have a multiselect slicer that has select all option in it. My slicer is also filtered from the filter pane by 'filter on this visual'. So, things filtered appear in the slicer. Because its a multiselect, I also have the select all option switched on from the visualization>>Format. I want to edit the 'Select All' to say 'All products'. I have created a calculated table for this but now the issue is 'All products' is all the products present in my dataset and not the cumulation of products from the filter pane. I want to rename 'select all' to 'all products' and this should be equivalent to only the products selected in the filter. Can someone help please urgently??Solved4.2KViews0likes3CommentsFilter two tables on Multiple Criteria
Hello! this might be confusing and I can't share any data so I will do my best! I have two tables: SynthesizedItems and Failures. I have a report page dedicated to fail rate. This is just the number of fails/number of synthesized items. (measures in the failure table) Originally, I linked the two tables to a common date table. this allowed me to see the fail rate adjusted based on the users filtering by date. Then, I realized I needed to be able to break this down further. I added an additional table called DepartmentFilter and linked it to department in both the fail and synthesis tables. this seems to work. Now my question. My report has SEVERAL factors involved that users can slice their data by (all coming from the failure table) and I noticed that if the user filters to a certain customer, the fail table will filter but not the synthesized items table. (makes sense because they are not related, although customer exists as a field in both tables). Is it possible to make this method work where any filter the user applies will affect BOTH tables and therefore give an accurate rate? Is there a limit to how many common "filter" tables I can create and link to both? Is there a way to do it other than creating tables for each field? really trying to avoid this since it would be about 10 fields.1.6KViews0likes9CommentsSumming up of manhours based on slicer range selection corresponding to filtered jobs
In power bi, I need a measure for dax code where when user selects date range from a slicer (calender table), jobs (only the instances where it lies in the selected calender date range) and corresponding manhours (only for the selected calender date range) from my table Bi_ alloceffort_data gets displayed where the REVDATE in same table falls between the user selected range. I tried the follwomg codes: 1. Selected_Manhours := VAR SelectedMinDate = MIN('Calendar'[Date]) VAR SelectedMaxDate = MAX('Calendar'[Date]) RETURN CALCULATE( SUM(Bi_alloceffort_data[Manhours]), Bi_alloceffort_data[REVDATE] >= SelectedMinDate && Bi_alloceffort_data[REVDATE] <= SelectedMaxDate ) 2. Selected_Manhours := VAR SelectedMinDate = MIN('Calendar'[Date]) VAR SelectedMaxDate = MAX('Calendar'[Date]) RETURN SUMX( FILTER( Bi_alloceffort_data, Bi_alloceffort_data[REVDATE] >= SelectedMinDate && Bi_alloceffort_data[REVDATE] <= SelectedMaxDate ), Bi_alloceffort_data[Manhours] ) 3. Selected_Manhours := VAR SelectedMinDate = MIN('Calendar'[Date]) VAR SelectedMaxDate = MAX('Calendar'[Date]) RETURN CALCULATE( SUM(Bi_alloceffort_data[Manhours]), KEEPFILTERS( Bi_alloceffort_data[REVDATE] >= SelectedMinDate && Bi_alloceffort_data[REVDATE] <= SelectedMaxDate )) But all the solutions are selecting the job based on slcier filter and then summing all the manhours (even ehen they are outside the slicer range) for the all job instances. I need manhours only for the instance where jobs and manhours are within the selected slicer range. Pls helpSolved1.2KViews0likes7CommentsIssue with Dax for a date slicer
I have a slicer that filters by yesterday, month to date, last month and 2 months ago. I noticed when i hit yesterday it will show 4/9/2025 which is correct but when i use the month to date it will do 4/1/2025 -4/10/2025 but skip over 4/9/2025. I am assuming the way my code is setup it is picking the first case the date falls into so i can't have 4/9/2025 be used in both filters. How would i adjust my code to be able to do have both filters work? I am very new to powerbi so any help or guidance is appreciated. Update To add onto this. I created a custom column in my calendar and then added it to a slicer. I now see in the table that 4/9/2025 is labeled as yesterday and 4/1-4/10 excluding 4/9 has month to date. DateFilter = VAR TodayDate = TODAY() VAR Yesterday = TodayDate - 1 VAR MonthStart = DATE(YEAR(TodayDate), MONTH(TodayDate), 1) var StartOfLastMonth = DATE(YEAR(TodayDate), MONTH(TodayDate) - 1, 1) var endOfLastMonth = EOMONTH ( TODAY(), -1 ) var StartOf2MonthsAgo = DATE(YEAR(TodayDate), MONTH(TodayDate) - 2, 1) var endOf2MonthsAgo = EOMONTH ( TODAY(), -2 ) RETURN SWITCH( TRUE(), 'Calendar'[Date] = Yesterday, "Yesterday", 'Calendar'[Date] >= MonthStart && 'Calendar'[Date] <= TodayDate, "Month-to-Date", 'Calendar'[Date] >= StartOfLastMonth && 'Calendar'[Date] <=endOfLastMonth, "Last Month", 'Calendar'[Date] >= StartOf2MonthsAgo && 'Calendar'[Date] <=endOf2MonthsAgo, "2 Months Ago", BLANK() )Solved714Views0likes3CommentsToggle between columns used in a date slicer
Hello hopefully this is pretty straightforward. I am wondering if it is possible to have a date slicer on my page, but allow the user to toggle between two dates. For example, I have order date and due date. I want to have just one date slicer on the page, but allow the user to select "Order Date" or "Due Date" from another slicer. Based on their selection, I want the date slicer to use the appropriate date field. Is that possible? I have looked into a slicer table and then a measure, but in the measure I am not sure how to return the date values to use in a slicer, only to return calculated values such as counts and totals.Solved759Views0likes1CommentReturn Items that have Neither Item Selected
A DAX Puzzler: I have an inventory problem I'm trying to solve. Each location has inventory in a table TableQOHRemoveZeros. If I select the items in the slicer, I want it to return locations that have NEITHER item. E.g. if I select iPhone 12 and iPhone 13 in the Slicer, the only location that should return is Location 114 Plum Lane. DISTINCT(TableQOHRemoveZeros[Device Name Short]) I thought that I could query this table after the items were selected against all of the locations using Except, but I don't think it's possible to query a table created by slicer selection. LocationsWithoutSelectedDevices2 = VAR SelectedLocations= ALLSELECTED(DisDeviceNameShort[Device Name Short]) VAR AllLocations = All('Current Hierarchy'[Sales Code]) Var ExcludeSelectedLocation = EXCEPT(SelectedLocations,AllLocations) Return (ExcludeSelectedLocation) Error:"A table with multiple values was returned when a single value expected" A real doozy. Any way to achieve this? I think it would have huge benefit to others as well and would greatly streamline a process like this. Sales Code Location Device Name Short 111 123 Main St iPhone 12 111 123 Main St Iphone 16 111 123 Main St Iphone 11 112 111 Elm St Iphone 10 112 111 Elm St Iphone 13 112 111 Elm St iPhone 14 114 800 Plum ln iPhone 15 114 800 Plum ln iPhone 16 114 800 Plum ln iPhone 17Solved1.3KViews0likes6CommentsUse week-slicer to filter visual on the according month
Hi all, We want to create a report and faced a problem, that we will need to solve also for future reports. In our current implementation, we use a slicer on one column of our date-table that filters the Calendarweek (Format YYYY.WW). The values of a table-visual are filtered using this selected value and that works fine. Now we have another visual, that we want to filter by the month that corresponds to the last day of our week. I.E. if we consider calendar week 48 in 2024 we get the 01.12.2024 as the last day of the week. So we want to filter our second visual to use all dates in december 2024. Currently we are having problems creating a dynamic filter criterion that filters our second visual based on the corresponding month of the selection of our week slicer. Does anyone have some suggestions how we can implement this in PowerBI? Thanks in advanceSolved900Views0likes3Comments