Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi everyone.
I am trying to create a mesure for Pareto diagram.
Everything works well when I use a static table_column_name for X axis.
I need to have an ability to select X axis between product category, product subcategory and product description, those are different tables.
For that purpose I have created a parameter to use in slicer for selection:
Pareto X axis = {
Hi @Ara_Karapetyan ,
According to your statement, I think [Pareto X axis] table is not related to your fact table. So your code will return error.
If you want to show three measures by measure name, I suggest you to try SWITCH() function.
Firstly, I suggest you to inactive the relationship between your fact table and dimtables.
Data model:
Measure:
Switch Measure =
SWITCH (
SELECTEDVALUE ( 'Pareto X axis'[ID] ),
0,
CALCULATE (
SUM ( FactSales[Sales] ),
FILTER (
FactSales,
FactSales[ProductCategoryName]
IN VALUES ( DimProductCategory[ProductCategoryName] )
)
),
1,
CALCULATE (
SUM ( FactSales[Sales] ),
FILTER (
FactSales,
FactSales[ProductSubcategoryName]
IN VALUES ( DimProductSubcategory[ProductSubcategoryName] )
)
),
2,
CALCULATE (
SUM ( FactSales[Sales] ),
FILTER (
FactSales,
FactSales[ProductDescription] IN VALUES ( DimProduct[ProductDescription] )
)
)
)
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for your reply.
My problem is with SUMMARIZE not SUM.