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.
Good afternoon everyone
I am new here & this is my first post.
I have been searching the web & have not managed to find a solution to my problem.
Using the following formula, I am able to get the correct list of suppliers, but I am wanting to sort the list based on Units for the whole period (12 months).
=CUBESET("ThisWorkbookDataModel","Except(Filter(EXISTS([OCR_VW_RPT_OCR].[PARENT_SUPPLIER_NAME].MEMBERS,[OCR_VW_RPT_OCR].[RETAINED_MONTH].[01 Aug 2024].lag(11):[OCR_VW_RPT_OCR].[RETAINED_MONTH].[01 Aug 2024]),[Measures].[EACT UNITS]>0),[OCR_VW_RPT_OCR].[PARENT_SUPPLIER_NAME].[All])","PARENTSUPPLIERNAME",2,"[Measures].[EACT UNITS]")
Can anyone spot the syntax error or is there maybe a different way/method of doing this? My generated list matches my manually created list perfectly, but the sort does not.
Any help on this would be highly appreciated.
Thanks,
Darryll
Hi @Darryll_B1986, give this a try, and if you encounter any issues, let me know.
=CUBESET("ThisWorkbookDataModel",
"Except(
Filter(
EXISTS([OCR_VW_RPT_OCR].[PARENT_SUPPLIER_NAME].MEMBERS,
[OCR_VW_RPT_OCR].[RETAINED_MONTH].[01 Aug 2024].lag(11):[OCR_VW_RPT_OCR].[RETAINED_MONTH].[01 Aug 2024]),
[Measures].[EACT UNITS]>0),
[OCR_VW_RPT_OCR].[PARENT_SUPPLIER_NAME].[All]
),
[Measures].[EACT UNITS]
)",
"PARENTSUPPLIERNAME",
2,
"[Measures].[EACT UNITS]"
)
Did I answer your question? If so, please mark my post as the solution! ✔️
Your Kudos are much appreciated! Proud to be a Solution Specialist!
Thank you for the reply @ahadkarimi , I get the following error when I use the formula provided, I think that there might be a missing " somewhere:
I cannot spot anything wrong with the formula though.
Thanks.
Thanks for the reply from ahadkarimi .
@Darryll_B1986 , if the problem persists, could you please provide some sample data and desired results based on the sample data so we can better help you? How to provide sample data in the Power BI Forum - Microsoft Fabric Community Or show them as screenshots. Please remove any sensitive data in advance.
Best Regards,
Yulia Xu
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 |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
13 | |
12 | |
11 | |
9 |