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.
I have the delow table
and a measure like this
No I still looking for an answer this issue has not been resolved. I need an answer that will not requires so much resourses because the code I have developed works but needs but it is noe efficient.
Thank you for providing the update. I have attached the updated PBIX file for your review. I hope it aligns with your requirements. When you have a moment, please take a look and let me know if everything appears satisfactory or if there are any changes you would like me to make. Your feedback will help ensure the file meets your expectations.
Regards,
Yugandhar.
Hi @Panos_12 ,
Could you let us know if your issue has been resolved or if you need any further assistance.
Thank you.
thank you but still not efficient my logic is more than the below
Hi @Panos_12 ,
Thanks for sharing. I agree with your approach. While your current logic works, the GENERATE + ALL scan can be resource intensive. You might consider using a YearMonth key to compare counts, or pre-flagging completeness in Power Query. This would make your measure lighter and more efficient.
Regards
Yugandhar.
Hi @Panos_12 ,
Thank you for clearly outlining the scenario, it helped me understand your requirements.
You want to display only companies with complete sales data for both 2024 and 2025 across all selected months, such as January, February, and March, and ensure the results remain consistent even when fields like Product are added to the visual.
I’ve attached the Power BI file for your reference. Please let me know if you need any changes or improvements.
Best regards,
Yugandhar.
If you have a date table linked to 'Sell Out'[Date] and the slicers for year and month are both coming from the Date table, you can create a measure like
SO Sent =
IF (
HASONEVALUE ( 'Sell out'[CustomerCode] ),
VAR DatesAndValues =
ADDCOLUMNS (
VALUES ( 'Date'[Year month] ),
"@sales", CALCULATE ( SUM ( 'Sell out'[Qty] ) )
)
VAR NumMonths =
COUNTROWS ( DatesAndValues )
VAR NumMonthsWithSales =
COUNTROWS ( FILTER ( DatesAndValues, [@sales] > 0 ) )
VAR Result =
IF ( NumMonths = NumMonthsWithSales, "SO REC (Full Month)", "SO Not REC" )
RETURN
Result
)
Thank you but the above is not filtering correctly the companies
and then for these companies I would like to add to the visualization table a field like the products that they are selling and the number be correct and do not change.
Hi here is an example below
So suppose that I have data for the 3 month above for Jan, Feb and March and for the company C I do not have data for January 2024, for company A I do not have data for February 2024 and for the company E I do not have data for March 2025, so when the user selected these 3 months and for the filter the selection SALES RECEIVED I would like to to be appeared only the companies B and D and their cumulative data. So the companies that I have data for both 2024 and 2025 for the month selection. Thank you
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.
Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
Sample Data
Month | Company | Sales QTY 2024 | Sales QTY 2025
-----------------------------------------------------
January | Company A | 2 | 3
January | Company B | 23 | 12
January | Company C | (missing) | 11
January | Company D | 13 | 1
January | Company E | 2 | 17
February | Company A | (missing) | 22
February | Company B | 231 | 112
February | Company C | 4 | 11
February | Company D | 13 | 1
February | Company E | 2 | 7
March | Company A | 2 | 3
March | Company B | 23 | 12
March | Company C | 12 | 11
March | Company D | 13 | 1
March | Company E | 2 | (missing)
Explanation
Company C is missing data for January 2024.
Company A is missing data for February 2024.
Company E is missing data for March 2025.
So, when filtering Jan + Feb + Mar for SALES RECEIVED, I only want to see companies that have data in both years (2024 & 2025) for all selected months.
Expected Result (Cumulative)
Company | Total Sales 2024 | Total Sales 2025
------------------------------------------------
Company B | 277 | 136
Company D | 39 | 3