Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello . I was hoping someone could help me. I created the calc below for lost customers. It works great however when the range is expanded I get a memory error. this query uses more memory than is configured. Code is below. I have tried to add variables to it to optimize it but cant seem to get it to work. Any help or sugestions would be highly appreciated.
Solved! Go to Solution.
I actualy solved the issue. The calc is below. Thank you all for trying to help.
I actualy solved the issue. The calc is below. Thank you all for trying to help.
Partner
to be honest I was under the impression that measures can be in any table and they work the same is that not so?
@MKatsanevas this is a Calculated Column, not a measure. It won't work as a measure.
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
ok thank you for your help. I cant create a calcualted column.
oh Im creating a mesure. Im usign a power BI model that I cant change so I cant add a calculated column
@MKatsanevas also, try use the below Calculated Column for your Transaction table:
Customer Type =
VAR _1 = CALCULATE ( LASTDATE ( 'Transactions'[PurchaseDate] ) , ALLEXCEPT ( 'Transactions' , Partner[Partner ID] ) , Transactions[PurchaseDate] )
VAR _2 = IF ( INT ( TODAY() - _1 ) > 365.2 , 1 , BLANK() )
RETURN
_2
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
this is my measure:
Hi @MKatsanevas you can use this version as a measure:
Customer Type =
VAR _1 = CALCULATE ( LASTDATE ( 'Transactions'[PurchaseDate] ) , ALLEXCEPT ( 'Transactions' , Partner[Partner ID] ) , Transactions[PurchaseDate] )
VAR _2 = IF ( INT ( TODAY() - _1 ) > 365.2 , 1 , BLANK() )
RETURN
_2
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
thank you but I get the same results a 1 in every column
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |