measures
6 TopicsIssues with Totals in Report Builder When Using DIVIDE and COUNTDISTINCT Measures
Hi, I've connected an RDL file in Report Builder to a semantic model developed in Microsoft Fabric. Basic measures like SUM work as expected. However, I'm encountering issues with more complex measures such as DIVIDE(Sum1, Sum2) and COUNTDISTINCT(ID), particularly in the total rows. When I don't apply a specific formula in the report, the total row displays First(measure) instead of recalculating the total as needed. For the DIVIDE issue, I understand that applying a formula directly in Report Builder can resolve it, which is acceptable. However, I have several complex measures to work with, like COUNTDISTINCT(ID), where retrieving all ID values would exceed my Fabric capacity, making it impractical to perform a distinct count directly in the report. Is there a feasible solution for this? Do you have any advice on handling such scenarios? Additionally, are there alternative tools for creating custom tables for export purposes, other than Power BI, which tends to slow down with complex measures and large datasets?Solved1.7KViews0likes3CommentsSummerize an virtual table in a measure
Hi guys, I wanna write a measure, in which I create a virual table, then summarize that virtual table with sum aggregation and at the end I use one of that summarized table to make my measure! How could I write such a measure? Many thanks in advanceSolved641Views0likes1CommentDisplaying a text column in a measure/matrix
Hello, I have a measure I am using in a matrix as kind of a summary for multiple companies. I am using switch for the column headers and then I have multiple different CALCULATION functions for displaying what I need. However I am having trouble displaying a column that is supposed to show the category for the companies. The data is text. I have tried SELECTEDVALUE and that works if I have slicer and pick that specific category but I want to show the matrix for all categories at the same time, any ideas? Thanks 🙂2KViews0likes4CommentsGroup by Measure in a Matrix
I have been searching for answers on this and have found several things that might work but I don't understand how to use them. Hoping someone can help me understand. I will try to explain what all I have and what I am trying to do. I have a measure called AverageDailyWorth that is just a sum of the customers spend divided by the number of trips they have made. I have a second measure using the switch function to roup the customer into ranges based on the AverageDailyWorth. So for example into groups like $0-$14, $15-$49,$50-$99,$100+. The goal is to have a Matrix that lists all of these groupings on the rows and then I can get the combined sum of values in columns for all the members in each group. This is super simple in Excel as I would just do a vlookup to assign to the Grouping and then do a pivot table based on the column from the vlookup. However recreating pivot tables in Power BI seems to be impossible when you are using a measure. At least to me. I have found the following ideas in my reasearch on this and they might or might not wok but with my limited understanding of the I have not gotten a workable solution: disassociated table virtual table virtual relationships I am still very new to Power BI and this foru as well. If there is a way I can provide a file with sample data and that is useful please let me know how. I will gladly make a mock sample file in Power BI as well as the expected result from Excel I would like to recreate.Solved1.1KViews0likes2CommentsUnable to display the sum of measure
The above image is just taken for reference but I want it to be seen as a visual table in Power BI I have a common company key from table1 and table2. I have subtracted the values of table1 and table2 and created a measure(difference). But there are at times table2 > table1, this picks up a negative value. In the end the total under "difference" is 100, but I want it to be the sum of (100 +200) which I am unable to do. I tried using ABS DAX function measure = ABS([Difference]), which does not affect the total since it takes the difference of 1250-1150 = 100. I tried using an if statement as well : IF( table2 > table1 , difference *-1, difference*1). since the total is not calculated in a vertical fashion, it takes the horizontal difference. Can anyone tell me how to get 300 here?1.4KViews0likes1Comment