User Profile
ArtisanAmbrosia
Frequent Visitor
Joined 3 years ago
User Widgets
Contributions
Re: Measure not abiding by filters
Gotcha, I missed that part! I think the KEEPFILTERS function should do the trick. Something like: PCAP Amount Match = VAR _Table1 = CALCULATE(SUM(Table1[Amount]), KEEPFILTERS(Table1[FieldA])) VAR _Table2 = CALCULATE(SUM(Table2[PCAP Amount]), KEEPFILTERS(Table2[FieldA])) return IF(ROUND(_Table1, 2) = ROUND(_Table2,2), "Match", "Break")1.1KViews0likes0CommentsRe: Measure not abiding by filters
I think adding a function to consider whether the Amount fields are null would do the trick. The below wouldn't produce a result if either _Table1 and _Table2 aren't null. Replace the || with && if you want to only produce a result where both _Table1 and _Table2 have a value. PCAP Amount Match = VAR _Table1 = SUM(Table1[Amount]) VAR _Table2 = SUM(Table2[PCAP Amount]) RETURN IF( ISBLANK(_Table1) || ISBLANK(_Table2), BLANK(), IF(ROUND(_Table1, 2) = ROUND(_Table2, 2), "Match", BLANK()) )1.1KViews0likes2CommentsRe: Concatenate 3 column values as icons
I appreciate your reply and time. It seems you've primarily repeated the DAX I already wrote and I don't understand the need for the first Combined Icons measure if I use the 2nd Combined Icons measure in the matrix. The issue of conditionally formatting each icon within the concatenated measure is still not solved. What "trick" would assign colors to each icon conditionally? Your last statement is the part I need to solve for: "Make sure to apply the conditional formatting rules properly to reflect the correct colors in your matrix visual."1.3KViews0likes2CommentsRe: Concatenate 3 column values as icons
Thank you for the blog. I would love to be able to conditionally format but it's not working with my concatenated column. I've been messing around with different DAX calculations for conditional formatting that would display a different icon for each concatenated column's results within the same column. I tried using gray unicode triangles instead to apply color formatting to, but it would only change the color of the 3rd icon rather than all 3. $ to Pace Format = SWITCH(TRUE(), CONTAINSSTRING([Combined Icons], UNICHAR(9650)), UNICHAR(9650) = "#3F9C35", CONTAINSSTRING([Combined Icons], UNICHAR(9660)), UNICHAR(9660) = "#E40046", BLANK())1.4KViews0likes4CommentsRe: Dynamic Custom Fiscal Year
Well, you may need to improve your date table... With a relationship between 'Fact Table'[Date of Occurence] and 'Date'[Date] You could hardcode the measure, which isn't ideal for when next FY comes: Last FY Count = CALCULATE(COUNT('Fact'[Column 1]), 'Date Table'[Fiscal Year] = "2023") Or you could use variables for something like: Last FY Count = VAR FYStart = [Date] >= "5/1/2023" VAR FYEnd = [Date] <= "4/30/2024" VAR CountFact = Count('Fact'[Column 1] RETURN CALCULATE(CountFact), [Date of Occurence] >= FYStart && [Date of Occurence] <= FYEnd)2.4KViews0likes0CommentsConcatenate 3 column values as icons
I am tracking Sales to Pace (target) and need to display a matrix column with past 3 month's results as 3 concatenated icons. Example with : Here's my base DAX I've trying different methods with: $ to Pace Cumulative = 'DAX Measures'[Created] - 'DAX Measures'[Combined Pace Cumulative Table] $ to Pace LCM = CALCULATE([$ to Pace Cumulative], 'Date Table'[CurrMonthOffset] = -1) $ to Pace LCM-2 = CALCULATE([$ to Pace Cumulative], 'Date Table'[CurrMonthOffset] = -2) $ to Pace LCM-3 = CALCULATE([$ to Pace Cumulative], 'Date Table'[CurrMonthOffset] = -3) $ to Pace LCM Icon = SWITCH(TRUE(), 'DAX Measures'[$ to Pace LCM] > 0, UNICHAR(9650), 'DAX Measures'[$ to Pace LCM] < 0, UNICHAR(9660), BLANK()) $ to Pace LCM-2 Icon = IF('DAX Measures'[$ to Pace LCM-2] > 0, "✅", "❌") $ to Pace LCM-3 Icon = IF('DAX Measures'[$ to Pace LCM-3] > 0, "🟢", "⭕") Combined Icons = [$ to Pace LCM-3 Icon] & " " & [$ to Pace LCM-2 Icon] & " " & [$ to Pace LCM Icon] The [Combined Icons] column is [Last 3 Months] in example matrix. Since I'm trying to represent the value of [$ to Pace Cumulative] as an icon only, I haven't been able to come up with a measure for conditional formatting that correctly designates a color for the unicode triangles or an icon for the values of concatenated measures. Ideally, I want to display these native PBI icons for above 0 and below 0: However, the following DAX doesn't work: $ to Pace LCM-2 Icon = IF('DAX Measures'[$ to Pace LCM-2] > 0, "TriangleHigh", "TriangleLow") I also couldn't get image URLs to work in this measure. Any idea how I can display the [Last 3 Months] column using the above native Power BI green and red triangles?1.4KViews0likes6CommentsRe: Dividing a row by the total of another column
There may be context missing with a simple solution like this, but have you tried something like: Rows by Total = VAR Rows = COUNTROWS('QUERY SQL ROCHA DESDE 2020') VAR totalsinlate = CALCULATE([# Rows],ALL('QUERY SQL ROCHA DESDE 2020'[LATE_DELIVERY_REASON])) RETURN DIVIDE(Rows, totalsinlate)878Views0likes1CommentRe: Dynamic Custom Fiscal Year
I find using the below linked table best for Fiscal Year reporting. The table has a Fiscal Year offset and various Fiscal Year fields when you input the month number of your first fiscal month. https://forum.enterprisedna.co/t/extended-date-table-power-query-m-function/63902.5KViews0likes2Comments
Data Privacy
Microsoft Fabric Community and Privacy
To learn more about how we manage your data, please review the Microsoft Fabric Community Data Privacy guide.