powerbi desktop
32 TopicsHeader row missing quotes when using DAX Studio
Hello Community! I'm using DAX Studio 3.2.0 to export a Table from PowerBI (the table has 320k rows so the reason for using DAX Studio). It is working perfectly EXCEPT that the header row does not contain quotes... the rest of the entries are wrapped in quotes. Is there a setting I need to change? Below is my simple query to get the table out of PowerBI: // My Query EVALUATE( myTable ) Look forward to your help Ray589Views0likes1CommentCoverting a Visual Table into a Data Table in the same PowerBI
Hi there, Is there a way to convert or duplicate a Table Visual to turn it into a Data Table within the same PowerBI? I can export the Table Visual as a csv file and then do a separate analysis from there, but is there any way to do this within PowerBI where the table that is created is automatically updated when the visual table is updated? I tried creating a new table to try and use the SUMMARIZE function but the Table Visual is not selectable (because it is not a data table). Essentially I'm wanting to do further analysis based on one of the columns within the Table Visual without having to export it.Solved1.4KViews0likes4CommentsPowerBI- How to write a calculate column when two tables have many to one relationship?
Hi, I have two table App(one relationship) and App Role(Many relationship). The direction of filteration is from App to App Role. This is a directquery model so RELATED, RELATEDTABLE are not supported functions. I have two columns(Role, Type) in App role table. I am writing a IF condition in App table something like below but I get only 0's. PrimaryB_Individual(A calculated column I created in App Role table): PrimaryB_Individual = IF( 'App Role'[Role] = "PB" && 'App Role'[App Type]= "Individual", 1, BLANK()) Level 1 is in App Table. This formula only gives me 0. Level 1 = IF( IF(not ISEMPTY( 'App'), SELECTEDVALUE('App Role'[PrimaryB_Individual]) ) && 'App'[TBUS] <=24 && 'App'[NE] = "Existing", 1,0 ) Any comments on what am I missing?Solved2.7KViews0likes13CommentsSum of Gross Values based on the max submission date for each App ID to show in a KPI Card
Hi Experts, I have daxed the below to be able to get the sum of the gross values where the latest submission date is picked for each application ID and summed with the others. This seems to pick for me only the gross value with the latest date based on all applications. The desire value needs to be 15,214.13 and right now it is showing me 1,982.33 I need to have the value in a visual card as a KPI . Not concerned with a slicer or anything. Unfortunately, I am not able to attach the powerBi file but I am attaching a snip of the Page visuals. $Gross Value = VAR _LatestSubmissionDate = ALLSELECTED('Table'[Submission Date]) VAR MaxSubmissionDate= CALCULATE(MAX('Table'[Submission Date]),VALUES('Table'[portalapplicationclaimid]),REMOVEFILTERS('Table'),_LatestSubmissionDate) VAR ActiveValue =CALCULATE(SUM( 'Table'[totaldisbursement_base]), FILTER('Table', 'Table'[statuscode] IN {"In Review", "In Review - Manager", "Submitted","Approved", "Opted Out"}), 'Table'[Submission Date]=MaxSubmissionDate) VAR RESULT = IF(ActiveValue=BLANK(),0,ActiveValue) RETURN RESULT How can I adjust this DAX to read properly? Not sure what I am missing or adding to the dax that it is ot reading properly.Solved698Views0likes3CommentsAssign COUNTIF to row range (number of customers per number of transactions intervals)
Hi, community, I have a sales table, in which each row indicates a transaction. My end goal is to be able to show a consolidation of the number of customers in each fixed transaction range, exemplified in the "Number of transactions" column below. Number of transactions Number of customers 1 2 3 4 5 6 7 8 9 >=10 -- Let's look at the sample data: 1) This is a sales table, with 81 transactions and 8 different customers in a determined period Customer Name Transaction Date Transaction # A 20/01/2023 X1262 A 28/02/2023 X1718 B 03/02/2023 X1426 C 09/02/2023 X1496 D 09/02/2023 X1508 E 25/01/2023 X1311 E 27/01/2023 X1334 E 27/01/2023 X1336 E 02/02/2023 X1414 E 07/02/2023 X1478 F 15/02/2023 X1574 F 17/02/2023 X1613 F 02/03/2023 X1762 G 10/01/2023 X1181 G 23/01/2023 X1282 G 23/01/2023 X1283 G 31/01/2023 X1362 G 31/01/2023 X1363 G 13/02/2023 X1536 G 13/02/2023 X1537 G 22/02/2023 X1645 G 01/03/2023 X1745 G 01/03/2023 X1746 G 17/01/2023 X1227 H 07/02/2023 X1459 H 27/02/2023 X1543 2) If I was to do this in excel, I'd create an intermediate table with the number of transactions per customer A 2 B 1 C 1 D 1 E 5 F 3 G 11 H 2 3) And then I'd use another CountIF to aggregate the number of customers per number of transactions Number of transactions Number of customers 1 3 2 2 3 1 4 0 5 1 6 0 7 0 8 0 9 0 >=10 1 Seems very basic, but I didn't manage to do this 3rd step in PowerBI and it's been a few hours now 😞Solved674Views0likes2CommentsPowerBI - Timeseries of categorical changes
Hello all, I have a simplified PowerBI data model here: https://drive.google.com/file/d/13aXUR8mw2MdP3tw9K9LHxhqRCZqPaLwz/view?usp=share_link I want to make a timeseries visual that accounts for when a user's status category changes over time. This is what the model looks like: The current status table shows the status of users TODAY, and there is a separate table tracking the historical changes to their status. The visual so far looks like this: I need a measure of some kind that will evaluate the correct count of users' status over time. Something like: I have tried using LOOKUPVALUE, and different forms of CALCULATE but I haven't gotten very far. Any help is greatly appreciated! Thank you1KViews0likes2CommentsNeed help in TOPN Dax measure
Hi All, I want to look at the top 10 campaigns for each month-Year by Unique Opens: Here are the steps i followed: 1. Create a column month-year in powerquery 2. Create a measure for total unique opens 3. Create a measure for TopN Here is the measure that i created. Doesnt work well. Top 10 Programs Per Month = VAR RankingContext = VALUES(CR[Program]) Return CALCULATE([Total Unique Opens],TOPN([Total Unique Opens],CR,RankingContext)) It gives more than 10 rows for the month-year with wrong sorting. Any help is appreciatedSolved1.2KViews0likes4CommentsHow to get the selected value from relative date slicer for showing the Dynamic Header.
I have Relative date slicer and I want to show what is selected in drop down for dynamic header. Example – Suppose slicer have following value – I want to show the dynamic header as "Last 1 Weeks". Please help me on resloving this. Thanks in Advance Sanjeev579Views0likes1CommentBar Graph Showing Percent Change per Category vs. Last Time Period
Hello all, Making a report but having trouble getting my desired visualization demonstrating percent change per category. Report pulls items (with a category column) produced in a week period along with value added (yield). Ideally, I'd like to create a bar chart that shows percent change of value added this week vs. last week for each category -- formatted like this: The weighted average for total items yield current week and last week are correct. To calculate percent change in total yield from this week over last week, I use this measure: Percent Change Yield Alt = DIVIDE( 'Production 22'[Current Week Weighted Average Yield], 'Production 22'[Prior Week Weighted Avg Yield]) - 1 Using that measure I've been trying to create another that store the weight average for each category rather than as a whole (I'm sure this has something to do with row context but I'm relatively new to this so I'm not positive). I've attempted a few different variations of this trying with DISTINCT, CALCULATE, or anything else I can find--I get a similar result though. At first I tried plugging in the measure "Percent Change Yield Alt" into the chart x-axis, which gives me this: From what I can tell, when there are multiple instances of items belonging to the same product category, that category's percent change will default to 5.24 (or the percent change in yield for total week production). Been trying some absolutely random stuff in order to try to get the correct numbers pertaining to each category. Here's one of my most recent efforts: Average2Change = AVERAGEX( DISTINCT(SELECTCOLUMNS('Production 22', " <y-axis (categories)> ", 'Production 22'[Percent Change Yield Alt], "Percent Change Yield Alt", 'Production 22'[Percent Change Yield Alt])), [Percent Change Yield Alt] ) This DAX results in the first bar graph from earlier in this post. Any help is appreciated.Solved4KViews0likes10CommentsCalculate Total Session Time And Time Per Page
Alright so I am trying to tackle two things within the same table. (linked) I was browsing other threads, and most had the start and stop times of a session or a page in separate columns, my data is not set up that way. I tried adapting this measure, but it was not working. Total_Session_Time = var x1=MAXX(Filter(All(ui_PageActionView),[SessionID]=SELECTEDVALUE(ui_PageActionView[SessionID])),[EventTime]) var x2=MINX(Filter(All(ui_PageActionView),[SessionID]=SELECTEDVALUE(ui_PageActionView[SessionID])),[EventTime]) return x1-x2 My desired outputs are as follows: Total Session Time in Seconds/Min Total Time Per Page in Seconds/MinSolved578Views0likes1Comment