@conditional formatting
26 TopicsConditional formatting for matrix column headers based on closed month
Hi all, I am working with a Power BI matrix where I have months (January–December) displayed as column headers, as shown in the screenshot. no value will display, only the column Kindly ask for below request solution Dynamically change the background color of the column headers If a month is financially closed → show green If a month is still open → show grey I have a DAX in my model (e.g., a measure or flag indicating whether a month is closed): Closed Month Flag = IF( SELECTEDVALUE('Time'[IsClosedMonth]) = TRUE(), 1, 0 ) so the challenge is only related to applying the formatting to the headers. Thanks for support!Need help in using Field Parameter in Top N filter and Conditional Formatting
Hi, I have a report that has conditional formatting and Top N filter on a static measure named IRR and it works perfectly. However, I want to change the measure to dynamic and allow user to select among a few other measures like DPI, RVPI and TVPI. I have created a Field Parameter and add all measures to it. It works for the bar chart at the bottom. However, I couldn't get the conditional formating to work. Also, the Top N filter based on that field parameter is not working properly. Can you advise how can I fix them, please? Thanks in advance. URL of my Power BI Report: https://github.com/chris-kc-cheng/ftk-powerbi/blob/main/Private%20Markets.pbixSolved977Views0likes4CommentsConditional Formatting Matrix Table By Rows
I want to apply conditional formatting row by row based on the value of the measures. For eg. I have three measures Measure 1 :- Sales = SUM(Sales_Data[Total Revenue]) Prev Month Sales = CALCULATE([Sales],DATEADD('DATE'[Date],-1,MONTH)) Prev 2MONTHS SALE = CALCULATE([Sales],DATEADD('DATE'[Date],-2,MONTH)) The highest value in each row should be green and the lowest value should be red and the mid value should be yellow. Attached file for your reference. https://drive.google.com/file/d/1YbPJ-K6aamwt1rW1FAqGpnGde6IFd3WB/view?usp=drive_linkSolved1.7KViews1like6Commentsconditional formatting lost when USERELATIONSHIP ist used
I have a table with two important values and two connections to the data model. Since I need the second value in my table, I used the USERELATIONSHIP function. Some data in the table is conditionally formatted, but this formatting is partially lost when using a slicer. I assume the slicer is applied to the "main" value where the connection is always active. Is there a workaround or a better solution than duplicating the entire table? Thanks for the help! Best regards 🙂Solvedhow can use measures for comperision in conditional formatting using power bi
I made two measures to find the sales amount for this day and the previous day. Now, I want to make a comparison between the amounts. I want to use an up arrow icon and a down arrow icon to show me which value is higher than the other. I mean like this I tried to use conditional formatting, but it is difficult to add a measure for comparison." what sould i do ?SolvedDynamic formatting not showing the correct currency in Excel
Hi team, I am using the dynamic formatting for a switch measure to ensure to display the data in correct format according to the selected measure. It works all fine until I visualise the data in Excel. I get £ sign instead of $ sign. Here is the dynamic formatting code: SWITCH( TRUE(), [SelectedMeasure] = 1, "$#,##0", // Revenue [SelectedMeasure] = 2, "#,##0", // Units [SelectedMeasure] = 3, "#,##0", // Accounts [SelectedMeasure] = 4, "$#,##0", // ADS Revenue [SelectedMeasure] = 5, "#,##0", // ADS Units [SelectedMeasure] = 6, "$#,##0", // Revenue On Pace [SelectedMeasure] = 7, "#,##0", // Units On Pace [SelectedMeasure] = 8, "$#,##0", // ASP [SelectedMeasure] = 9, "#,##0", // Units / Account [SelectedMeasure] = 11, "0%", // IVL/PCI% [SelectedMeasure] = 12, "0%", // IVL/ROTA% [SelectedMeasure] = 13, "$#,##0", // Revenue (actual fx) [SelectedMeasure] = 14, "#,##0", // Units Coronary [SelectedMeasure] = 15, "#,##0", // Units Peripheral [SelectedMeasure] = 16, "#,##0", // Orders [SelectedMeasure] = 18, "$#,##0", // Revenue Coronary [SelectedMeasure] = 19, "$#,##0", // Revenue Peripheral [SelectedMeasure] = 20, "#,##0", // Units FOC [SelectedMeasure] = 21, "0%", // Units FOC % [SelectedMeasure] = 22, "0%", // C2/PCI% [SelectedMeasure] = 23, "0%", // C2/ROTA% "General" // Default format ) I tried adding FORMAT([SelectedMeasure]) but it returns wrong results. Kindly advise, Best regards, HugoSolved1.2KViews0likes2CommentsConditional Color based on COUNT for Guage Visual and multiple tables
I'm trying to show a visual of authorized position for multiple locations vs actual. RESULTS: RED gradient for 'under manned' and GREEN gradient for 'overmanned' and WHITE if authorized equals manned. Table1: all manning data every name, their job, location, etc (a living document) Columns: [NAME], [LOCATION], [JOBTITLE], etc Table2: a set document (that a director might change later based on needs) showing location, jobtitle authorized and paygrade this table includes every one of the 20 job authorizations at each of the locations. So, I might have a total entry of 16 jobcode 3X3A across all locations, but 5 here and 3 there, etc. Columns: [LOCATION], [JOBTITLE], [PAYGRADE] Current page setup is a slicer to filter by location and 20 GUAGE visuals (newCard would also work if easier) that are each filtered by a COUNT of each of the twenty Table1 and Table2[JOBTITLE] jobs... 3X3A, 3X3B, etc. This gives me two numbers to play with... Authorized and Assigned. I think the tables are linked right as I get the correct results, but... I'd love to have the visual show RED gradient if Assigned is less than Authorized, WHITE if equal, and GREEN gradient if overmanned. I've dabbled in DAX, but don't know enough to figure this out from slightly related examples. I've tried creating a new column that would do the count AND show me the difference between authorized and assigned... I'm just kinda stuck looking at a nice page I've created that is just all one color BLUE. Any thoughts?? thx, -mmSolved1.2KViews0likes6CommentsConditional 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.3KViews0likes6CommentsConditional Format Blank Values for Specified Column
I am trying to create a DAX formula to conditionally format the blank values for a specified column. In the below visual, I want all the blank values under "Renovo", "6/24", and "%" to show as the trianglelow icon. Below is my formula: Color = IF( SELECTEDVALUE('Transactions Export'[Previous Month Filter])="Previous Month" && SELECTEDVALUE('Transactions Export'[Lender v3])="RENOVO" && ISBLANK([Transactions %]),"TriangleLow") No icons appear with my formula. How can I acheive the desired result?Solved1.3KViews0likes5CommentsConditional Formatting Only Active for Specific Column Value
I've created a row based conditional formatting DAX formula, but I don't want the conditional formatting to be active for the "Lender" column where Lender="COMP" Is there anyway that I can get my formula to ignore the values that fall under "Comp" so that they are not highlighted in any colors? In other words, I only want the "RF" values to be highlighted in colors. Below is more formula: Color = IF( NOT(ISBLANK([Transactions])), RANKX(CALCULATETABLE( ALLSELECTED('Transactions Export'[Lender])), [Transactions],,,Dense ) )Solved558Views0likes1Comment