Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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,