help required
140 TopicsCannot expand next hierarchy in Matrix
I found an issue in a visual in Power BI service. I have a hierarchy of Rows: Month -> Week -> FltDate. But I cannot expand to the level of FltDate. And when I try fixing it in edit mode, removing and re-inserting FltDate to the Rows, it works. But when I save the report and reopen it in view mode, everything remains, it cannot be expandedSolved12KViews1like11CommentsCounting Rows in Different Table based on Current Row Context
Hey all, First of all, thank you for taking your time to stop by and reading my help request! I am an intermediate user of Power BI and have started to encounter difficulties with more complex logic with DAX. Task: I would like to calculate the % of individuals in each branch that have completed the training course. To do that, I need to divide the # users completed by the # users allocated for training. Problem: I cannot figure out the DAX code to find # users allocated for training that respects the row context in the matrix while looking at a different table that is related 2 steps away. For example, lets say the first row calculation for Adelaide - Expert - Cert 2 If i could write it in pseudocode, it'd be something like this: COUNTIF( USER[Location] = "Adelaide" && USER[ALLOCATED] = "Cert 2") FROM All Allocated Users However, the confusing part for me is that the relationships are not defined clearly. I have a table with every user, and then another table allocating users to a MAKE Then, I have a historical table for all training performed and another table explaining the structure of the training curriculum. This also has a MAKE field. The image below is a snippet of the table, the last column is simply a Count of all the User IDS from the ALLOCATED USERS table and is returning the full list for every row in the table. I have tried many other DAX codes but cannot get it to simply count the number of users from the ALLOCATED USERS table. Datastructure: Allocated Users Curriculum Training History Link to PBIx: (updated link) https://www.dropbox.com/scl/fi/o3mjeaqyyukpb402lqhk7/PBI_Help_Counting-Users.pbix?rlkey=w52n2x3re2r0b5em6fb1g7fr3&st=2ngf8u85&dl=0 All help is sincerely appreciated and I will try my best to reciprocate in the community when I get better myself with Power BI. Thank you all again! Regards, NamduSolved889Views0likes4CommentsDAX in building Rolling 4 Week Average
Hi, I need help in building 4 week rolling average for "Net Change in Price and Cost" with below sample data Change in Price, Change in Cost and Net Change in Price and Cost are all 3 measures. Net Change in Price and Cost = Change in Price - Change in Cost I do have separate date table and the above data shows weekly data and my report has Invoice Date as Filter. I need to calculate rolling 4 week average, here the tweak is that for first week start date 12/07 rolling average should be same while for next 12/14 it should (-4.80% + 0.18%)/2 = -2.31% for 12/21 it should be (-4.80% + 0.18% - 0.04%)/3 = -1.55% for 12/28 it should be (-4.80% + 0.18% - 0.04% -0.65%)/4 = -1.33% for 01/04 it should be (0.18% - 0.04% -0.65% +1.03%)/4 = 0.13% as shown below I have created below DAX but its not working as expected Net Change in Price and Cost 4 Wk Rolling Avg = var start_day = MIN('Date'[Week Start Date])-21 var end_day = MAX('Date'[Week Start Date]) return CALCULATE([Net Change in Price and Cost], DATESBETWEEN('Date'[Week Start Date],start_day,end_day), REMOVEFILTERS('Date'[Week Start Date]))/CALCULATE(DISTINCTCOUNT('Date'[Week Start Date]),DATESBETWEEN('Date'[Week Start Date],start_day,end_day),REMOVEFILTERS('Date'[Week Start Date])) Can someone help me on this??Solved7.1KViews0likes5CommentsConditions True or False based on the two table
I have a two table one table Global Another one Local . Both table have common value Itemnumber , based on Global Table : Itemnumber Pack 101 102 103 NewHL 104 NewPack Local Table : Itemnumber BOMTEXT 101 102 CH 103 104 NewPack Based on the item i am trying to get true or false result Global Pack Local (BOM text) Output Result Blank Blank / Item code is missing in local input file TRUE Blank Value FALSE Value Blank / Item code is missing in local input file FALSE Value Value TRUE Expect Output: Itemnumber Pack BOMTEXT true/false 101 TRUE 102 CH FALSE 103 NewHL FALSE 104 NewPack NewPck TRUE Looking for support. thanks in advance..Solved1.2KViews0likes4Commentsfind the True or False compare two table using common column in both table
I have two table First table and second table. I am trying to compare two table based on the common column Itemcode in two table. If First table Item code have pack outer value and same time second table Same Item code have BOM text value its return TRUE. If First table Item code have pack outer value its blank and same time second table Same Item code have BOM text value its return FALSE If First table Item code have pack outer value its blank and same time second table Same Item code have BOM text value blank its return TRUE If First table Item code have pack outer value or blank and same time second table doesn't contain same Item code its return TRUE First Table : Itemcode Pack outer FA411211 56 FA411212 46 FA411213 44 FA411214 FA411215 46 FA411216 Second Table : Itemcode BOMTEXT FA411211 PL FA411212 PW FA411213 FA411214 FA411216 TH Expect Output: Itemcode Pack outer TRUE/FALSE FA411211 56 TRUE FA411212 46 TRUE FA411213 44 TRUE FA411214 TRUE FA411215 46 TRUE FA411216 FALSE looking for support . thanks in advanceSolved1.8KViews0likes5CommentsFilter and not in filter
What is the DAX synax to count how many students requested but didn't supply the essay. I tried this but I know its is wrong. Students Missing Essay = CALCULATE(DISTINCTCOUNT(ACTIVITY_LOG[STUDENT_ID]), ACTIVITY_LOG[ACTIVITY_DESCRIPTION] = "Requested Assignment" && ACTIVITY_LOG[STUDENT_ID] NOT IN LIST(ACTIVITY_LOG[STUDENT_ID], ACTIVITY_LOG[ACTIVITY_DESCRIPTION] = "No Essay")) For example the data would be like this Student ID - Activity Description 1 - Requested Assignment 1 - No Essay 2 - Requested Assignment 3 - Requested Assignment 3 - No Essay Then my measure would return 2, because 2 of the 3 students requested but didn't have essay.Solved3.4KViews0likes11CommentsAppearance of Calculated DAX columns in Query editor/ transform data
Dear Team, I have calculated columns in data view calculated using dax code, i want those columns to appear in query editor to unpivot them. how do i write an M code to appear the calcualted columns in query editor ? or is there any alternative way to do. Thanks in advance !Solved1.1KViews0likes4CommentsIs it not possible to publish reports from your workspace to free users (I am a Pro license)
Hi Bro, Hope you are well. As the title says, do I have to create a new workspace before I can put my report in this new workspace, and then publish this report to free users in the new workspace? Also, can I set the user to come in and open the link to my report to display it full screen? Thanks in advance. BR, SoldierSolved988Views0likes4CommentsTrying to create another column using "OR logic" from two columns and to use for filtering
Hi All, I want to create another column using OR Logic between column 1, column 2 Table = Summary column 1 = team, column 2= shared team, Purpose of that new table will be to use it for filtering, I want to see all the records in single column if col1 team or col2 shared teams.. If need more information please send an email at [email protected] thanks thanksSolved723Views0likes3Comments