@measures
5 TopicsShowing Only Total Labels for Stacked Bar Chart with Conditional DAX Logic
Hello, If I select single selection from slicer (type-1/type-2/type-3) then need to see the data value like below. If I select single selection from slicer (type-12 only) which is a stacked chart, combination of type-1 and type-2. If I select multiple selection from slicer then no individual data label will come (will show only total). I'm currently using a DAX measure in Power BI to hide data labels when selecting type-1 and type-2 (at the same time) from a slicer. But, it is not working. It is showing (individual data labels, and total data labels both) Data Label = VAR SelectedCategories = VALUES(type_sort[type]) -- Get all selected categories VAR ConcatenatedSelection = CONCATENATEX(SelectedCategories, [type], ", ") RETURN IF( ConcatenatedSelection = "type-1, type-2", "", -- Hide the data label [describeMeasure] -- Otherwise, show the data label ) As I mentioned before, I need to turn on total labels on to see the total for the type-12 (when selecting it only). I also need to turned on the data labels to see data point when selecting a single selection of type-1/type-2/type-3. If anyone has suggestions for improving the DAX or alternative approaches to achieve this behavior, I’d really appreciate it. You can find the Power BI file here: [link]Solved1.7KViews0likes7CommentsMeasure the relevance of i item
Hello there again, I need to find out how to calculate the relevance of an item compared to the general value. i have here the dashboard for you to download (ControleDaProducaoMaisLeve&BALSend.pbix) and see. What i need is the item in the visual table to be tested to see its relevance compared to the others, the logic is: if i remove this item, or not consider it, or filter all but leave it out, will the amount of "CountAvailable01" still be the same or it will decrease compared to the value on the card "Ped. Com Potencial"? if it decrease, the item is somehow relevant, if it does not do any difference its no important, a whay to measure the amout is the formula (1-"Ped. Com Potencial"/"CountAvailable01"); with that i will have a percentage of how important that item is to the general situation.. It might feel a little confuse, hope you guys can help me, i've allready tried a lot and used all AI i could to help me. Thankyou a lot879Views0likes5CommentsParameter value not picked up in calculated column
Hi, I have a column which reads as below: Date allowed for KPI Met = If('Table'[Mode]="Air",'Table'[Date],(If(WEEKDAY('Table'[Date])<=3,'Table'[Date]+Select_days_to_add[Select_days_to_add Value],if(WEEKDAY('Table'[Date])<=6,'Table'[Date]+Select_days_to_add[Select_days_to_add Value]+2,'Table'[Date]+Select_days_to_add[Select_days_to_add Value]+1)))) Select_days_to_add[Select_days_to_add Value] is from the parameter defined. Despite changing the values of parameter, the "Date allowed for KPI Met" remains the same. Could you please let me know a workaround for this issue. I am not able to create a measure as date value has many duplicate values. Thanks in advance for the help! Regards, MuralidharSolved1.4KViews0likes8CommentsDAX Measure, Total is wrong
Hello I have problems converting formulas into DAX measure, Measure 1: SUM(Quantity) / SUM( Quantitiy / Goal ) My try: DIVIDE('Table'[Quantity], SUMX('Table', DIVIDE('Table'[Quantity], 'Table'[Goal]))) Measure 2: Other Measure / Measure 1 My try: DIVIDE('Table'[Other Measure], 'Table'[Measure 1]) Problem is, that Calculations in Table Visual are right, but Total of Measure 2 is not correct. Measure 2 is displayed in %. Output: Quantity Goal Measure 1 Other Measure Measure 2 158 2.400 2.400 4.277 178,2 % 1.734 3.300 3.300 2.857 86,6 % 564 2.650 2.650 2.093 79,0 % 130 2.400 2.400 1.910 79,6 % Total 2.586 2.635 88,4% All values are correct, but total of Measure 2 is off and should be 87,5% can u help?Solved1.8KViews0likes6CommentsConditional Formatting to show colour grades dependant on a changing measure outcome
Hi there, I have a measure that is dividing the number of absent employees over the past year by the average headcount providing me an overall % of absent vs headcount. I have then added this % into a table and added in Teams where it then shows the % of absent employees by team. What I would like to format is the colour of the Team level % by the overall measure outcome. For example, lets say the companywide % of absent employees is 10%. Team X has a value of 5% in the table therefore can be coloured green as it is below the companywide overall number or 10%. Team Y has 20% so should be red. This format should change depending on the overall firm % so if it drops to 4% companywide, Team X would then turn red too. How do I do this please? I have been trying for a few days now to no avail! Thank you!1.3KViews0likes6Comments