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.
Hi, i am trying to work out if a customer ID had migrated from Cloud to on Prem. A customer ID would come up multiple times for cloud or on prem. What i need to do as be able to put something in place to say IF Customer has Cloud AND On Prem then output migrated. The table below is an example of what i am trying to accomplish;
Solved! Go to Solution.
@Anonymous Please try this..
Migrated = VAR _CloudCheck = LOOKUPVALUE(Test63[CloudorPrem],Test63[CustomerID],Test63[CustomerID],Test63[CloudorPrem],"Cloud") VAR _OnPremCheck = LOOKUPVALUE(Test63[CloudorPrem],Test63[CustomerID],Test63[CustomerID],Test63[CloudorPrem],"On Prem") RETURN IF(_CloudCheck<>BLANK() && _OnPremCheck <> BLANK(),TRUE(),FALSE())
Proud to be a PBI Community Champion
@Anonymous,
You may also refer to the DAX below.
Column = CALCULATE ( DISTINCTCOUNT ( Table1[Cloud or Prem] ), FILTER ( Table1, Table1[Customer ID] = EARLIER ( Table1[Customer ID] ) ) ) = 2
@Anonymous,
You may also refer to the DAX below.
Column = CALCULATE ( DISTINCTCOUNT ( Table1[Cloud or Prem] ), FILTER ( Table1, Table1[Customer ID] = EARLIER ( Table1[Customer ID] ) ) ) = 2
@Anonymous Please try this..
Migrated = VAR _CloudCheck = LOOKUPVALUE(Test63[CloudorPrem],Test63[CustomerID],Test63[CustomerID],Test63[CloudorPrem],"Cloud") VAR _OnPremCheck = LOOKUPVALUE(Test63[CloudorPrem],Test63[CustomerID],Test63[CustomerID],Test63[CloudorPrem],"On Prem") RETURN IF(_CloudCheck<>BLANK() && _OnPremCheck <> BLANK(),TRUE(),FALSE())
Proud to be a PBI Community Champion
@PattemManohar Thank you very much for the swift reply i am getting the following error with this
Column 'CustomerID' in table 'CustomerOrderItems' cannot be found or may not be used in this expression.
Is there naything i can do to get past this error?
@Anonymous Please make sure the column names are same as it was present in your table. I might have different names for my test data.
Proud to be a PBI Community Champion
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 |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |