Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a date, Code and Number Of Event Column . The Logic is This - WHen You have BB or BV in the Code code Column There should BE "1" on the Number of Event Colum but if we have BB or BV on Two consucative Days WE want to have "1' for the first Day and '0" For the Second Day. Example
Date| Code|Number Of Event
1/1/2001| BB| 1
1/2/2001| BB| 0
1/7/2001| BB| 1
1/8/2001| BB| 0
1/12/2001|BB|1
Please How Can I implement this Logic With Dax . I have Tried This IF([Code]="BB",1,0,IF([Code]="BB",1,0)) But It didnt Work
Hi @Anonymous
Try this
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Did not Work
IF(OR([Code]="BB" ,[Code]="BV"),1,0)
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
57 | |
35 | |
27 | |
27 | |
26 |
User | Count |
---|---|
62 | |
51 | |
30 | |
24 | |
23 |