isfiltered
9 TopicsNeed help with a DAX measure issue, that doesn't filter correctly.
hi Guys/Girls I've got a measure [FilteredTotal] & [Total], and i'd like to create a measure that returns the value from [Total] when the filter is active on the page, or else if filte is not active return the value for [FilteredTotal]. ConditionalTotal = IF ( ISFILTERED(ChartOfAccounts[Name]), [Total], [FilteredTotal] ) but this doesn't really work, because the value for [Total] still shows when no filter is chosen. what might be the problem? please ask if you need more info to answer/help977Views0likes5CommentsCurrency conversion with currency and year filters
I have 4 tables downloaded from the bank regarding exchange rates (CurrencyRates_2020,CurrencyRates_2021, etc.) in which there are columns with currencies, months and exchange rates, in the finance table there are columns amounts, inflows, outflows, date. I also added a table that contains currency column that I used to create the filter. What I would like to do is create a measure for amounts, outflows and inflows that will convert to the currency selected by the filter in the year selected by the filter. I've only written the part for the selected currency , but I don't know how to add a date filter. I would like it to fetch me data from the file "CurrencyRates_2021" when I select the date 2021 etc. I wanted to add at the beginning IF(AND(ISFILTERED('Currency'[Currency]),ISFILTERED('Consulting Finance'[Year]) [...] But I have no idea what to write next.946Views0likes3CommentsTell if a visual on page has a filter
I want to create a measure that disaplays a subtitle in particular visual depending on if its filter by a field. We have a filed isopen which is 0 or 1. I want this measure to work across multiple different visuals that use the isopen field and be able to evaluate the filter contex of that visual on the same page and change subtitle accordingly for example. Below two cards one showing open Inciodents other show closed requests both using the same isopen field. The open, closed subtitle is on seprate card and id like it show below the tile based on filter context of that visual. Not the table or page and without the need to a apply the same filter context to subititle card to display this. +----------+ +----------+ : Incident : : Requests : : Open : : Closed : : 85 : : 25 : +----------+ +----------+ I can easily create indervisual measures for each title which i did as an intial test but this is waste and trying to reduce number of measures.475Views0likes0CommentsMaximum argument count for ISFILTERED is 1
Hello! I'm trying to replicate this filter selection card: https://p3adaptive.com/2018/02/using-selectedvalues-capture-power-bi-slicer-selections/ but putting two different columns from two different tables in a same "filter identifier visual card" To do this, I need to modify the following function: Employee Sales Region Selection = IF( ISFILTERED(‘Employee Details'[Employee Team Name]), CONCATENATEX(VALUES (‘Employee Details'[Employee Team Name]), [Employee Team Name], “,”), “No Selection”) My idea is that instead of a single column (‘Employee Details'[Employee Team Name]), two different columns are attached in this function (‘Employee Details'[Employee Team Name], ‘Expense Ratio'[Expense Ratio]) Regards and Thanks!1.5KViews0likes5CommentsSWITCH and ISFILTERED combination
Hi all I am using a measure as follows: Fixed cost var filters = SWITCH( TRUE(), ISFILTERED(dDate[Year]), DIVIDE( CALCULATE( SUM('Fixed Cost per Month'[fixed Cost]), ALL('Fixed Cost per Month'[fixed Cost]) ) *MAX(dDate[Month Number]), [Dedicated Shipments] ), ISFILTERED(dDate[Month]), DIVIDE( SUM('Fixed Cost per Month'[fixed Cost]), [Dedicated Shipments] ) ) This when fed to visualization gives the below: for only [Year] filtered For [Months] filtered What I actually want from the measure is to give the "Actual Required" column values which is [Sum fixed cost / Dedicated Shipment] Month Dedicated Shipments Sum fixed cost Fixed cost var filters Actual required Jan 1800 910000 505.56 505.56 Feb 3288 910000 553.53 276.76 Mar 3553 910000 768.36 256.12 Apr 3726 910000 976.92 244.23 May 4397 910000 1034.8 206.96 Jun 3965 910000 1377.05 229.51 Jul 3381 910000 1884.06 269.15 Aug 5502 910000 1323.16 165.39 Sep 6396 910000 1280.49 142.28 Oct 6602 910000 1378.37 137.84 Nov 7656 910000 1307.47 118.86 Dec 5928 910000 1842.11 153.51 Here, Dedicated Shipments = CALCULATE([Shipments],'Prototype Modeling_Freight'[Transporter Type]="DEDICATED") Please let me know if any additional info is required here for you to arrive to a conclusion. All your comments and suggestions are greatly appreciatedSolved3.3KViews0likes1CommentTarget values with ISFILTERED
Hi all Here is a screen recording to my problem statement Sample Data: Plant Cluster Plant Unit Origin Name Target Test.LBV_target Target Test.LBW_Target Loadability Weighted NORTH BIHAR Purnia Depot 718320 964.32 97.91% NORTH NORTH EAST Fatuha Depot 773091 1220.67 97.03% NORTH ODISHA Rourkela Depot 225762 374.36 97.00% NORTH ODISHA Khurda Depot 285980 383.15 96.02% NORTH BIHAR Patna Depot 470353 1235.78 95.74% NORTH NORTH EAST Gourpuri Depot 586602 1182.86 95.09% NORTH JHARKHAND Ranchi New Depot 679728 1140.72 95.02% WEST PUNE Kolhapur Depot 84564 155.52 94.69% SOUTH VIZAG Vizag Depot 477480 671.24 94.15% NORTH SILIGURI Asansol Depot 96855 156.75 93.94% WEST NASIK Aurangabad Depot 970212 1332.48 92.92% NORTH ODISHA Khorda 1840150 2576.21 92.75% NORTH SILIGURI DC Fatapukur 578277 891.87 92.25% SOUTH VIJAYAWADA Atmakuru 2034774 2513.7 91.84% NORTH EAST UP Kanpur Co-pack Water 395458 625.1 91.69% SOUTH HYDERABAD Ameenpur 2513167 3455.15 91.67% WEST GOA Goa 165170 747 89.16% NORTH JAMMU BB Depot 70672 567.9 88.60% SOUTH CHITTOOR Srikalahasti 885760 1259.44 88.24% WEST RAJASTHAN Kaladhera 729495 1509.3 88.17% SOUTH KARNATAKA Bidadi Plant 86080 288 88.15% WEST RAJASTHAN Udaipur Depot 202464 395.16 87.76% NORTH WEST UP Dasna 3049662 5092.2 87.39% WEST MADHYA PRADESH Bhopal 737334 1596.66 86.15% SOUTH TAMIL NADU Gangaikondan Copack 233520 483.72 85.43% SOUTH KARNATAKA Bangalore-Bidadi-DPG 2064650 3053.6 85.38% NORTH EAST UP Kanpur Depot 455390 685.1 84.88% NORTH JAMMU Jammu 37281 251.43 84.56% SOUTH TAMIL NADU Coimbatore Depot 151041 519.39 84.37% SOUTH TAMIL NADU Redhills Depot 700854 2100.12 84.14% SOUTH KERALA Cochin Depot 76560 487.2 83.12% SOUTH TAMIL NADU Nemam 227672 336.16 82.85% NORTH WEST UP Jhilmil Depot 31416 292.74 81.87% SOUTH HYDERABAD Himjal Copack 496384 941.8 81.82% SOUTH HYDERABAD Maula Ali Depot 303606 781.56 81.46% SOUTH HYDERABAD Bowrampet Depot - NKA 51756 358.66 80.85% SOUTH KARNATAKA Bidadi Plant 2 158015 141.96 78.67% SOUTH KARNATAKA Bharatiyam Copack 191820 248.4 76.17% SOUTH HYDERABAD Bowrampet Depot - GT 104400 444 73.68% SOUTH KARNATAKA South KP Road Depot 5894 189.45 44.62% Measures in question: Target Value LBW = IF( ISFILTERED('Prototype Modeling_Freight'[Origin Name]),CALCULATE(VALUES('Prototype Modeling_Freight'[Target Test.LBW_Target])), IF(ISFILTERED('Prototype Modeling_Freight'[Plant Unit]),CALCULATE(VALUES('Prototype Modeling_Freight'[TArget Test_PU.LBW_Target_PU])),BLANK())) Any commnet or suggestion is welcomed TIA Anonymous Greg_Deckler nandukrishnavsSolved2KViews0likes5CommentsGauge target value and using ISFILTERED with VALUES
Hi all I have a particular problem with multiple values selected. Here is a screen recording of my problem statement measures in question: Target Value LBW = IF( ISFILTERED('Prototype Modeling_Freight'[Origin Name]),CALCULATE(VALUES('Prototype Modeling_Freight'[Target Test.LBW_Target])), IF(ISFILTERED('Prototype Modeling_Freight'[Plant Unit]),CALCULATE(VALUES('Prototype Modeling_Freight'[TArget Test_PU.LBW_Target_PU])),BLANK())) Plant Cluster Plant Unit Origin Name Target Test.LBV_target Target Test.LBW_Target Loadability Weighted NORTH BIHAR Patna Depot 470353 1235.78 97.91% NORTH BIHAR Purnia Depot 718320 964.32 97.03% NORTH EAST UP Kanpur Co-pack Water 395458 625.1 97.00% NORTH EAST UP Kanpur Depot 455390 685.1 96.02% NORTH JAMMU BB Depot 70672 567.9 95.74% NORTH JAMMU Jammu 37281 251.43 95.09% NORTH JHARKHAND Ranchi New Depot 679728 1140.72 95.02% NORTH NORTH EAST Fatuha Depot 773091 1220.67 94.69% NORTH NORTH EAST Gourpuri Depot 586602 1182.86 94.15% NORTH ODISHA Khorda 1840150 2576.21 93.94% NORTH ODISHA Khurda Depot 285980 383.15 92.92% NORTH ODISHA Rourkela Depot 225762 374.36 92.75% NORTH SILIGURI Asansol Depot 96855 156.75 92.25% NORTH SILIGURI DC Fatapukur 578277 891.87 91.84% NORTH WEST UP Dasna 3049662 5092.2 91.69% NORTH WEST UP Jhilmil Depot 31416 292.74 91.67% SOUTH CHITTOOR Srikalahasti 885760 1259.44 89.16% SOUTH HYDERABAD Ameenpur 2513167 3455.15 88.60% SOUTH HYDERABAD Bowrampet Depot - GT 104400 444 88.24% SOUTH HYDERABAD Bowrampet Depot - NKA 51756 358.66 88.17% SOUTH HYDERABAD Himjal Copack 496384 941.8 88.15% SOUTH HYDERABAD Maula Ali Depot 303606 781.56 87.76% SOUTH KARNATAKA Bangalore-Bidadi-DPG 2064650 3053.6 87.39% SOUTH KARNATAKA Bharatiyam Copack 191820 248.4 86.15% SOUTH KARNATAKA Bidadi Plant 86080 288 85.43% SOUTH KARNATAKA Bidadi Plant 2 158015 141.96 85.38% SOUTH KARNATAKA South KP Road Depot 5894 189.45 84.88% SOUTH KERALA Cochin Depot 76560 487.2 84.56% SOUTH TAMIL NADU Coimbatore Depot 151041 519.39 84.37% SOUTH TAMIL NADU Gangaikondan Copack 233520 483.72 84.14% SOUTH TAMIL NADU Nemam 227672 336.16 83.12% SOUTH TAMIL NADU Redhills Depot 700854 2100.12 82.85% SOUTH VIJAYAWADA Atmakuru 2034774 2513.7 81.87% SOUTH VIZAG Vizag Depot 477480 671.24 81.82% WEST GOA Goa 165170 747 81.46% WEST MADHYA PRADESH Bhopal 737334 1596.66 80.85% WEST NASIK Aurangabad Depot 970212 1332.48 78.67% WEST PUNE Kolhapur Depot 84564 155.52 76.17% WEST RAJASTHAN Kaladhera 729495 1509.3 73.68% WEST RAJASTHAN Udaipur Depot 202464 395.16 44.62% any suggestion or comments are welcome TIA Anonymous Greg_Deckler nandukrishnavs571Views0likes0Commentsalternative to ISFILTERED when Select All is used
I have a measure I'm using to limit the data that appears on a map visual. It looks like this: ShowMap = VAR UnitFilter = IF( ISFILTERED('Pool View'[UNIT]) ,1 ,0) VAR TierFilter = IF(ISFILTERED('Pool View'[TIER]) ,1 ,0 ) VAR StateFilter = IF(ISFILTERED('Pool View'[STATE]) ,1 ,0 ) VAR FilterSum = UnitFilter + TierFilter + StateFilter RETURN IF(FilterSum = 3,"Y","N") Trouble arises when someone uses Select All in the Tier filter. There are six values there, and I'm trying to avoid having my users individually select all the values when they want to include them all. What's a good substitue for ISFILTERED when Select All is in play? Thanks.Solved2.8KViews0likes1Comment