Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi.
I have my compare function working when comparing two different tables but it way to slow to release to any end user.
I am comparing Data_POG metrics vs Data_Performance metrics in two different tables. Both tables are tied to a Product List and a Store List.
I need to know if they if they match..if they are the same, or less, or more. The file is about 60K so it is not the file size. I believe it is how I am using dax formulas.
Here is an example of how I am getting to the "Less" caclulation in the Post Files. I do the same calculation for the Pre and compare them.
Should I combine the tables and then redo the dax formulas? Append and then group by? Thanks for any help on how to layout this database or redo calculations to improve speed.
--------------
Post $ Sales - Less:=VAR PreFilter = [Pre_Filter]
VAR PostFilter = [Post_Filter]
RETURN
SUMX (
SUMMARIZE ( Data_POG, KGR_PROD_MSTR[Base UPC],KGR_STR_MSTR[DivStr] ),
VAR PreCheck =
CALCULATE (
CALCULATE (
[Ttl Capacity],
FILTER ( VALUES ( Data_POG[Relay] ), Data_POG[Relay] = PreFilter )
)
)
VAR PostCheck =
CALCULATE (
CALCULATE (
[Ttl Capacity],
FILTER ( VALUES ( Data_POG[Relay] ), Data_POG[Relay] = PostFilter )
)
)
VAR PostVel =
CALCULATE (
CALCULATE (
[$ Vel],
FILTER ( VALUES ( Data_Perf[Relay] ), Data_Perf[Relay] = PostFilter )
)
)
RETURN
IF (
PostCheck > 0
&& PostCheck < PreCheck
&& PreCheck <> BLANK (),
PostVel,
BLANK ()
)
)
Solved! Go to Solution.
What are your criteria for "match"?
Usually you compare via INTERSECT and/or EXCEPT.
Thank you!
What are your criteria for "match"?
Usually you compare via INTERSECT and/or EXCEPT.
User | Count |
---|---|
14 | |
10 | |
7 | |
6 | |
5 |
User | Count |
---|---|
30 | |
19 | |
12 | |
7 | |
5 |