Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello!
I have a table that looks like this:
Main Cat1 | aaa | bbb |
Main Cat2 | ccc | ddd |
Sub Cat2.1 | eee | fff |
Sub Cat 2.2 | ggg | hhh |
Main Cat3 | iii | jjj |
And i would like to split them up to make independant calculations with sub categories and main categories.
Do you know how to do that?
Thanks!
Solved! Go to Solution.
@Anonymous ,
What is the differentiating factor, how can you detect when this is a category/sub-category?
For example, if you have a column say Flag, then you can create a different column based on Flag='Yes'
You will have a new column like
Check_Cate_Sub-Cate
Category
Sub-Category
Category
so forth and so on......as you said independent
Now make use of Pivot to see those as headers(Category/Sub-category)
Regards,
Ritesh
@Anonymous first of all you don't have to split them in order for calculations will do whatever you want them to do 🙂
Anyway, you can create 2 calculated tables:
CategoryTable =
FILTER(
'Table',
SEARCH("Main",'Table'[A],1,BLANK()) > 0
)
SubCategoryTable =
FILTER(
'Table',
SEARCH("Sub",'Table'[A],1,BLANK()) > 0
)
If this solved your question please mark this as a solution. Appreciate Your Kudos 🙂
@Anonymous ,
What is the differentiating factor, how can you detect when this is a category/sub-category?
For example, if you have a column say Flag, then you can create a different column based on Flag='Yes'
You will have a new column like
Check_Cate_Sub-Cate
Category
Sub-Category
Category
so forth and so on......as you said independent
Now make use of Pivot to see those as headers(Category/Sub-category)
Regards,
Ritesh
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
145 | |
87 | |
66 | |
51 | |
45 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |