pbi desktop
16 TopicsMAQ Dot Plot – Custom legend colors not working when selected value has no data (blank)
Hi Team, I am working on a MAQ Dot Plot visual in Power BI Dashbaord where I compare one selected company against a cohort of multiple company's I am using two disconnected slicers one for a single selected company and another for multiple cohort company's. I created a DAX measure that checks if the current row’s company belongs to the selected slicer or the cohort slicer using VALUES and IN logic. Based on this, I return a flag (1 for selected, 0 for cohort) and use it in the visual for conditional formatting and filtering 1. Scenario / Requirement Selected company (single select) Cohort company's (multi-select) Requirement: Selected company → highlighted in Orange (#ED7D31) Cohort company's → shown in Blue (#2994C7) Selected company has NO data → Treat as cohorts blue color (#2994C7) Legend Calculation: I am using the following DAX for legend: School Selected = VAR SelectedValues =VALUES('Slicer Selected company '[Selected company]) RETURN IF(MAX(Selectedcompany[companyName]) IN SelectedValues,1,0) Issue: This setup was working correctly earlier. However, recently I have noticed a change in behavior. When the selected company has no data (returns blank), the visual removes that data point and only cohort data remains. In this situation, the MAQ Dot Plot no longer applies the expected cohort color and instead defaults to a grey/black color. However now: When the selected company has no data (blank) That data point disappears (expected) But then the visual shows only cohort values, legend collapses into a single category and all dots turn default grey/black instead of blue 👉This breaks the custom color logic. Observed Behavior: If selected company has data → colors work correctly If selected company has NO data → Only cohort remains visual shows default grey/black color. Additional Details: Using numeric legend (1 / 0) for color mapping Gradient coloring Minimum color Blue (#2994C7) and Maxnimum color Orange (#ED7D31) Tables are partially disconnected (using DAX logic for filtering) My Understanding: It seems that: When selected company has no data, the measure returns BLANK Power BI removes that row Only one legend category (0 = cohort) remains MAQ Dot Plot fails to apply custom colors and defaults to grey Question's: Is this expected behavior in MAQ Dot Plot when only one legend category exists? Have there been any recent updates or changes in Power BI or the MAQ visual that could have affected this behavior? How can I: Maintain custom colors even when selected data is missing? Prevent fallback to default grey color? Is there a recommended way to always preserve legend categories in MAQ visuals? Please any guidance or best practices would be greatly appreciated. Thanks, PradeepSolved472Views0likes3Commentsslicer
Need a date filter by using slicer which should filter start date and end date when ever report gets loaded its should show values(default) form start date should be :01-Feb-2023 end date should be: Today's day ( dynamically) also when ever user want to change the start data and end date that option also need to enable in slicer. how we can do the same pls assistSolved568Views0likes1CommentGet the average of a column value based on total count of values in ID column
Hi, In a table i have column called "Object" which runs multiple times in a day and that runtime is captured in "StartTime" & "EndTime" columns, and the difference between the start and end time is captured in the "Duration" Column. Each object will be having multiple runid's which is captured in "RunID" column which is a unique value. For eg: Object AAA has two runid's called "111,222" and Object BBB has one runid called "333". Now i would like to get the average of each duration by count of that particular runid which is captured in "New Duration" column. For eg: The count of 111 runid is '10'. so for all those durations with runid 111 should be divided by the 10. The count of 222 runid is '6'. so for all those durations with runid 222 should be divided by the 6. The count of 333 runid is '8'. so for all those durations with runid 333 should be divided by the 8. Sample screenshot for above query: So since my Duration is "10" and total count of runid (111) is 10. So 10/10=1 that is my newduration.Similarly for all durations with runid's 111 should be divided bt 10. How to achieve this using DAX query?? I am connecting to this table in powerbi via SQL direct query mode. Thanks.Solved1.1KViews0likes2CommentsDifference between two values when one of the value is blank
Hi All, I am a newbie to PBI. I have run into this issue with my matrix visual Delta is calculated basically as the difference between Date 1 & Date 2 using DAX. If there is value in Date 1 (say 100) and a value in Date 2 (70) the Delta is 30. But like the table below sometimes the value in Date 1 is blank/empty/null and Date 2 has a value and vice verse . If that is the situation I need the Delta to show up as a negative and positive value respectively. For example (see first 2 rows...3rd and 4th row are working as expected) Date 1 Date 2 Delta 100 -100 100 100 90 60 30 60 90 -30 Can someone help with this? Thanks!Solved641Views0likes1CommentPBI Live connect to AAS (dynamic columns in matrix) ?
Hi all, Iam in trouble with creating matrix in PBI which will dynamically change columns/rows based on selection from slicer. Iam using live connect to Azure analysis tabular model actually and trying to do following solution: static data table for colum names, measure to identify change, row_selector:=sum('Value selector row'[Order]) calculated column "rows" = var x1=IF([row_selector]>39,1,[row_selector]) var x2= CALCULATE(VALUES('Value selector row'[Name]),FILTER('Value selector row','Value selector row'[Order]=x1)) return switch( x2, "Stredisko",RELATED('xy1'[x)]), "Prevádzka",RELATED('xy2'[y)]), "Pokladňa",RELATED('xy3'[z]), "N/A" ) In AAS visual studio is everything working fine, but after deploy to PBI row value is not changing either when underlying measure changes correctly. Is there some way to refresh calculated colum when PBI (live connected) slicer selection changes ? Thank you1KViews0likes1CommentPower BI Desktop/Report Server
Hello, My company has 2 customers who have different types of Power BI licenses: 1 has Power BI Service and another has Power BI Report Server. As such, we have to build the reports in the 2 different softwares, one with the Power BI Desktop and the other with the Power BI optimized for the Report Server. Since the reports are the same (only the datasources change), is there any way to take advantage of the work done in the Power BI Desktop for the Power BI Report Server? Best regards, Guilherme BernardoSolved1.2KViews0likes2CommentsDifference between PBI desktop and PBI Optimized for Report Server.
Hi, what is the difference between PBI desktop and PBI Optimized for Report Server? what is best practice regarding the development? Can you develop in PBI optimized for report server? or the developing better to be done in PBI desktop? BestSolved4.4KViews0likes5CommentsCount Number of couple items sold based on Invoice number.
Hello I want to trace which the most couple of items repeated together in same invoices and count these invoices for each couple The answer in the topic below answers half of my question, but the products in this query are fixed values can i get something dinamically Topic: Count Number of Bundles sold based on Invoice number. ThanksSolved1.7KViews0likes4Comments