table
79 TopicsReactive fact table when i clicked the bar of chart, made of 3 different dates.
Hi, experts. I tried and searched, but I can find the solution. I have fact table, it shows items about project. Like id, title, teamname, assigned to, startdate, enddate, ceated, status... And 2 charters, one is clutered column, another is line with clustered column chart. Slicer settled with date of calendar table. And calendar table [date] got a relationship with created date of origin table. Activated Start date, end date are got a relationship with calendar date, too, but not activated. Made some measures for count of items of each dates( created, start, end ) Charter has those 3 measures. The table basically shows items(records:id,title,status...) based on created date and the chart shows count of created, start, end date items on bar If I clicked the one of three bars on chart, then I want to show items on table that I clicked. How can I make it? Best regards.Solved1.4KViews0likes10CommentsSum only Values where another Column has Data
Harder than it looks: I have this simple table like below: I want to calculate how we're performing based on the goal in a Card. So I need to Sum only the goal values where the Gross Adds column is not blank(GAs are in the past and Goals are for the whole month). In theory this should work, but it puts a total for all the months previous rather than what is selected in the slicer. What's strange is if I replace [GAGoal] with [Gross Adds] in the measure below it correctly adds up the Gross Adds for the current month selected in the slicer. GoalTotalCurrent = VAR LastDaySelection = LASTNONBLANK ( 'Calendar'[Calendar Date], [Gross Adds] ) VAR CurrentRange = DATESBETWEEN ( 'Calendar'[Calendar Date], MIN ('Calendar'[Calendar Date] ), LastDaySelection ) RETURN IF ( LastDaySelection >= MIN ( 'Calendar'[Calendar Date]),CALCULATE ( [GAGoal], CurrentRange )) I've tried things like this, but it results in blank: SumGoals = IF(SUMX('Subscriber Activity',[Gross Adds])<>Blank(),SUMX('Subscriber Activity',[GAGoal])) So it shouldn't sum 1/8,1/9,or1/10 Date Goal Gross Adds 1/1/2025 5 6 1/2/2025 7 5 1/3/2025 8 7 1/4/2025 7 7 1/5/2025 4 3 1/6/2025 3 2 1/7/2025 2 1 1/8/2025 5 1/9/2025 5 1/10/2025 52.9KViews0likes16CommentsI don't understand why a stock graph isn't categorizing by deposit
I have a Stock table called "S Stock" in which I have the column [tipodeposito] (which is the type of deposit) and [deposit] (which is the deposit per se). I created a Stock measure that only took into account some of the types of deposits and deposits. However, when I make a table in the report and categorize it by type of deposit, it shows the entire stock without differentiation. I have made this two ways (keep in mind [cantidad] in quantity): 1. Stock = CALCULATE(SUM('S Stock'[cantidad]), OR('S Stock'[tipodeposito] = "Consignado", OR( 'S Stock'[deposito] = "ALMACEN PYH", OR ('S Stock'[deposito] = "BODEGA PYH", 'S Stock'[deposito] = "Casa Big Sur")))) In this case, you should know all those examples of [deposito] are just a share of a [tipodeposito] that is called "Bodega" (which encompasses other deposits and doesn't intersect with "Consignado"). However, when I make the bar graph and try to differentiate the stock by [tipodeposito], this is how it appears: 2. In this case, I created two measures in order to better differentiate the stock I want to take into account from [tipodeposito] = "Consignado" and from [tipodeposito] = "Bodega". So: Stock Bodega = CALCULATE(SUM('S Stock'[cantidad]), OR('S Stock'[deposito] = "ALMACEN PYH", OR('S Stock'[deposito] = "BODEGA PYH", 'S Stock'[deposito] = "Casa Big Sur"))) Stock Consignado = CALCULATE(SUM('S Stock'[cantidad]), 'S Stock'[tipodeposito] IN { "Consignado" }) Later, I sum them up in the Stock measure: Stock = CALCULATE(Stock[Stock Bodega]) + CALCULATE(Stock[Stock Consignado]) And this is the graph I get (even weirder, as the "Bodega" has all the stock available and "Consignado" just a part of it, them being a simple column which categorizes all the stock in two categories): How can I have a graph in which the total stock is divided into these two categories, but in which "Bodega" only has those three deposits I mentiones ("ALMACEN PYH", "BODEGA PYH", "Casa Big Sur"), and without using filters in the table, just in the formula? Thanks!Solved606Views0likes2CommentsMulticolumn Slicer for Table Filtering
I have the following set of data. The data table as a column that has concatenated all of the column names that have a TRUE value for the record. Data Table data_col tf_col_1 tf_col_2 tf_col_3 tf_col_4 tf_col_concat Column Data 1 TRUE TRUE TRUE TRUE tf_col_1,tf_col_2,tf_col_3,tf_col_4 Column Data 2 FALSE TRUE NULL TRUE tf_col_2,tf_col_4 Column Data 3 FALSE FALSE FALSE TRUE tf_col_4 Column Data 4 TRUE TRUE TRUE FALSE tf_col_1,tf_col_2,tf_col_3 I have created a parameter based on the "TF Col"s in the table and the code behind it looks like this TF_COL_PARAM = { ("TF Col 1", NAMEOF('Query1'[tf_col_1]), 0), ("TF Col 2", NAMEOF('Query1'[tf_col_2]), 1), ("TF Col 3", NAMEOF('Query1'[tf_col_3]), 2), ("TF Col 4", NAMEOF('Query1'[tf_col_4]), 3), } TF COL PARAM TF COL PARAM Fields TF COL PARAM Order TF Col 1 'Query1'[tf_col_1] 0 TF Col 2 'Query1'[tf_col_2] 1 TF Col 3 'Query1'[tf_col_3] 2 TF Col 4 'Query1'[tf_col_4] 3 I have created a checkbox slicer based on the TF_COL_PARAM parameter with the following options: TF Options TF Col 1 TF Col 2 TF Col 3 TF Col 4 I would like the table to filter based on the selections in the slicer. If the selection in the slicer is selected, show me all the records in the table that have a corresponding TRUE value. If the solution could also work for Multiple selections in the slicer, that would be great. I do not want to create an individual slicer for each of the tf_col columns as there could be N number of columns and that would not be practical. Our users are not going to use filters, and a combined slicer, such as what you would see in "TF Options" is what we would want. The problem I am having is the slicer only returns the value from the slicer for "TF COL PARAM" or "TF COL PARAM Fields" and not the column name just the column name. I believe I need to create a DAX query along the lines of the following, but this DAX is invalid: Matches Values = IF (CONTAINSSTRING('Query1'[tf_col_concat], SELECTEDVALUE('TF Options'[TF COL PARAM]), TRUE, FALSE) Also, this is not the only set of data in the database that is setup like this. I have 10 other column combinations I'll be doing this for, so fixing this will help with 10 other reports I am trying to create. Any advice on how to accomplish this? Thanks in advance for any advice and any help.Solved803Views0likes2Commentsshow values in data table filtered under different conditions
Hello all, I need help with DAX code that would produce results in a matrix table under the following conditions. So far not much luck.. Conditions For example, i have the following data with items under "Inventory", "Shipped", and "Invoiced" column. The actual table consists of thousands of rows, and the items in "Inventory", "Shipped" are not unique. They can consist of same/similar items. The requirement 1) Filter "Invoiced" column as "No". (this will determine the "Inventory" items) 2) Based on the Inventory items in 1), I need all of the "Shipped" items for each Inventory item, if the "Invoiced" condition is set to "Yes". *In the actual data, per each "Inventory" item, it will usually consist of 1 or more "Shipped" items. Inventory Shipped Invoiced A Z Yes B Y No C X Yes A W No B V Yes C U Yes A T No B S Yes C R No A Q Yes ・ ・ ・ ・ ・ ・ Thank you in advance!Solved1.2KViews0likes4CommentsHow to generate a new table base on some conditions
Hi team, Good day, I got a problem which need your kind advice, thanks in advance. I have a table1 in Power BI, the data is as following: Now I want to create another table (table2) base on table1, but only select few data base on conditions 1 & 2: 1. Only select these 4 columns data: GEOGRAPHY.03 MARKET, FISCAL TIME.04 FISCAL MONTH, PRODUCT LINE, AMT 2. Only the sum of AMT for GEOGRAPHY.02 SUPER REGION is not 0 should show in this table2 so this means only row 9-13 meet this condition, because row 1-8 sum AMT for SUPER REGION Asia Pacific is 0, although row 13 contains 0, but sum of AMT for Americas is not 0. So finally I would like to generate the table 2 like following:Solved626Views0likes3CommentsDAX and Tables used in DAX/Measures creation - dependent and precedent
Just curious to know if there is any option from which we can easily identify the columns, tables or any existing measures has been used in new measure creation. something similar to Trace dependent and precedent in excel. Natalie_iTalent505Views0likes1CommentPer row variance in a table against the same single measure
Hello, I have a table listing an ID, its area location and a number. I have then created a measure to calculate the average for Area A. ID Area Reading 1 A 3.8 1 A 3.1 2 A 3.9 3 B 5.8 3 B 5.1 4 B 8.2 4 B 8.1 5 B 8.7 6 C 6.3 Average of A = 3.6 I now need to calculate the variance for every row against that average of A to show a table like this: ID Area Reading Variance 1 A 3.8 0.2 1 A 3.1 -0.5 2 A 3.9 0.3 3 B 5.8 2.2 3 B 5.1 1.5 4 B 8.2 4.6 4 B 8.1 4.5 5 B 8.7 5.1 6 C 6.3 2.7 How do I calculate the variance for each row against that same single measure? Thank youSolved568Views0likes2CommentsCalculating Total of a column inside virtual table
Greetings everyone, I have virtual table that looks like this: Each row is a product that belong to same product family (data is only partially visible here). "Revenue" and "Total Regional List" Price exist in the main Data Table. Next calculateions are virtual, used as measures. 1) I have first calculated total Revenue for this family, which is 858.317,55. 2) Next i have calculated "Level Factor Weight" for each item, which is "Revenue" / "Sales Revenue per Year by Family". 3) And finally i have calculated "Weighted Target List Price", which is "Total Regional List Price" * "Level Factor Weight". So far so good. Now i would like to calculated total or sum of "Weighted Target List Price", basically 0,06 + 0,03 + 0,00 + 0,65... (just as one see the numbers inside this table) and that is where i have problems. When i put "Total Regional List Price" and "Weighted Target List Price" in one virtual table without product numbers, they show the same result. Any hint would be very appreciated. Sincerely, Pavlo742Views0likes2CommentsTable with a measure
I would like to create a table something like below year is set for 2006, 2013 and 2018, and i can use measure like lookupvalue to find year's number of people. but the problem is Dax doesnt like measure in the created table my dax is like table = {(2006,LOOKUPVALUE(Census_all[2006Total], Census_all[Area Code],[selectedClub]), (2013,"456"), (2018,"789")} you can see the data is there but its table doesnt like measure and basically 2013 and 2018 will show data but 2006 it cannot, becasue selectedClub is a measure. i know where is a function is like calcuated or something could solve the problem but i tried and cannot solve it. any suggestions? thanks in advanceSolved3.2KViews0likes6Comments