The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I have determined the distinct count of clientnumbers for two years 2022 and 2023. For which I used two measures:
Hi @DataNinja777 ,
I already have a calender table, but I have no idea how to achive the required output.
Hi @HAW ,
You can achive your required output in multiple ways using Power BI, but I would recommend you to utilize a calendar table and create a relationship between your fact table and the calendar table instead of using OR condition to filter the half year periods for 2022 and 2023. A calendar table can be written in the following manner for example.
Calendar = addcolumns(calendar(date(2022,01,01),date(2023,12,31)),"yyyy-mm",format([Date],"yyyy-mm"))
Best regards,