Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi -
I have a list of accounts, I need to know if a particular account is a Sales Account or not based on the column which is "Sales Account".
If any account has one value as "Yes", I would need all Yes in the Yes/ No column. For Eg. - In the screenshot, Verizon has one line item as Yes, so I would require all Yes in the Yes/ No column.
Sales Account is an already created measure
Note - I am using SSAS >> Live connection w/ cube to Power BI.
Solved! Go to Solution.
So here I created two calculated columns
1. Yes/No_Count = if ('Sales Account'[Sales Account]="Yes",1,0)
2. Yes_No_Final = if(CALCULATE(SUM('Sales Account'[Yes/No_Count]),ALLEXCEPT('Sales Account','Sales Account'[Account Name]))>0,"Yes","No")
Proud to be a Super User!
How are you splitting the rows which have the same ID, Account Name and Sales account values?
Proud to be a Super User!
Paul on Linkedin.
@PaulDBrown - They are splited based on the year and quarter and there are few child accounts too. Hope this answers!
Hi @ritu24raj ,
What is the formula of "Sales Account"?
Try this measure:
Measure = CALCULATE([Measure 2],ALLEXCEPT('Table','Table'[ID],'Table'[Name]))
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks @V-lianl-msft I tweaked the formula and its running.
But thanks for the help 🙂
Regards,
Ritu Raj
@ritu24raj , Create a new column
if(countx(filter(Table, [Account Name] = earlier([Account Name]) && [Sales Account] ="Yes"),[Account Name])+0>0, "Yes","No")
Hi @amitchandak - Thanks for this, as I mentioned I am connected to a cube and I cant use the EARLIER function. Additionally, I can only create measures and not columns.
@ritu24raj I guess without creating a column, it would be difficult to achieve. If you can create a column, below solution would work for you.
Proud to be a Super User!
So here I created two calculated columns
1. Yes/No_Count = if ('Sales Account'[Sales Account]="Yes",1,0)
2. Yes_No_Final = if(CALCULATE(SUM('Sales Account'[Yes/No_Count]),ALLEXCEPT('Sales Account','Sales Account'[Account Name]))>0,"Yes","No")
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |