query editor
4 TopicsCompare, evaluate, and visualize “mismatched” data across a table
Hello! I have been trying for weeks to figure out the best way to determine then visualize the occurrence of what I call mismatched data within a table. consider my sample data below in the following layout: Date Member Vendor SKU Category 9/22/22 A Homemade 11-110 Price Match 9/20/22 A Homemade 11-110 No Price Found 9/12/22 B Wooden 23-1111 Price Match 8/20/22 C Homemade 000-245 Price Match 8/15/22 B Wooden 23-1111 No Price Found 7/10/22 B Wooden 23-1111 No Price Found 7/02/22 A Homemade 11-110 Price Match 7/01/22 C Homemade 000-245 Price Match I am trying to create a measure or configure the table above so that for each Member, Vendor, and SKU, the resulting category is compared to previous categories of the same Member, Vendor, and SKU. For example, Member A purchased item 11-110 from the same vendor on 3 different occasions. 2 of those occasions resulted in a category of Price Match but 1 of those purchases resulted in a category of No Price Found. I would like the purchase that resulted in the "mismatch" to be displayed in the table or visual. Doing this will help me track, prioritize work, and highlight category mismatches that occur. I appreciate any help!Solved2KViews0likes6CommentsCount similar strings within a query (example input and output in description)
Hey everyone, I'm looking for help creating a DAX equation to find the same value over a given power query and count the amount of times it appears. Any ideas or ways to go about this. The image attached shows an example of a given table and what the desired result is. Any advice or ideas are welcome.Solved906Views0likes3CommentsPowerQ help with potentially splitting columns?
I have two tables and I can't fgure out how to properly build the data model I have Table 1 with all my audit finding details. Find ID is the record for the Find. That find could have multiple issues. As shown in the Control Issue column. I have a second table that provides the explanation of what the Control Issue is. The Problem i have is that some of the Findings have multiple Control Issues in the same column as per the second finding below. I need a way to split the Control Issue column so that it creates a new ROW for each control issue. The new ROW needs to carry over the other filelds as well. Essentially making two records for Find567. One that alings with Control Issue (TD-BlueCover-R) and one that alings with (TD-Blast). Table 1 Finding ID Control Issue Open Date Find345 TD-Blast Jan 21 Find567 TD-BlueCover-R TD-Blast Feb 22 Find998 TD-PurpleRain Mar 15905Views0likes2CommentsFilter a running total of a measure to show data only until yesterday
Dear community, I would like to get assistance on a DAX code in Power Query that filters my running total of a measure to show values only until yesterday. This is the code that I have so far: Total Revenue 2020 = var LastSalesDate = CALCULATE('Acc Items 2020 Mews'[F&B 2020 Total Revenue],'Acc Items 2020 Mews'[Date]=TODAY()) RETURN if ( SELECTEDVALUE('Calendar'[Date]) > LastSalesDate , BLANK(), CALCULATE('Acc Items 2020 Mews'[F&B 2020 Total Revenue], FILTER(ALLSELECTED('Calendar'), 'Calendar'[Date] <= MAX('Calendar'[Date]) ))) What I am trying to get is a running total of a measure [F&B 2020 Total Revenue] that sums the total revenue for 2020 of three different departments from the table 'Acc Items 2020 Mews'. I believe that this code is not correct for the running total. In addition, the problem is that I want to create a running total of that measure and track its performnace next to the set budget of the year. Pretty simple visual. But my table is loaded from an active API that has values that go into several months ahead. That is why I want to restrict it to show values until yesterday, because my team is usually looking at the performance from the past day. Can someone help me resolve this?762Views0likes1Comment