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 Friends, i need your help. I have tried to create a flag for a same store based on the m2 of each contract.
Greetings
Create two measure, one for this sales for this year and another for sales for previous year, you can DATEYTD and SAMEPERIODLASTYEAR function to calculate these measure.
Add another measure to see the difference between the values of above two measures.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Thanks, but i cant get it
@mikel1380,
Create the following measures in your table
m2-2016 = CALCULATE(SUM(Table1[M2]),Table1[Year]=2016)
m2-2017 = CALCULATE(SUM(Table1[M2]),Table1[Year]=2017)
flag = IF([m2-2016]=[m2-2017],1,0)
If the above DAX don’t help, please post the dummy data of your table in Excel and share us the Excel file, and describe what is the current issue.
Regards,
Lydia
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 |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |