Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi Everyone,
I need to create a measure and do group by based on the Company name. For the below expression I need to get the values based on the aggregation of Company name. Please help me on this.
Solved! Go to Solution.
Hi @Kavya123
If you use your formula in a measure, then you could only add "company name" and this measure in a table or matrix visual.
Measure = CALCULATE(sum( Sheet2[answertest]) , FILTER(Sheet2, CONCATENATE(Sheet2[Answer Text], Sheet2[Answer Text])="YesYes" ))
Or if you want to show all columns and measures together in a table visual, you could create another measure
Measure 2 = CALCULATE([Measure],ALLEXCEPT(Sheet2,Sheet2[company name]))
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Kavya123
If you use your formula in a measure, then you could only add "company name" and this measure in a table or matrix visual.
Measure = CALCULATE(sum( Sheet2[answertest]) , FILTER(Sheet2, CONCATENATE(Sheet2[Answer Text], Sheet2[Answer Text])="YesYes" ))
Or if you want to show all columns and measures together in a table visual, you could create another measure
Measure 2 = CALCULATE([Measure],ALLEXCEPT(Sheet2,Sheet2[company name]))
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you drag Company Name and your measure onto a visual the Group By will happen automatically. However your measure looks overly complicated. Have you tried the following pattern?
CALCULATE(sum( PROFILERTABLENEWSUBMITTED[answertest])
, PROFILERTABLENEWSUBMITTED[Answer Text] = "Yes"
, PROFILERTABLENEWSUBMITTED[Answer Text])="Yes"
)
Hi,
Thanks for the reply. I have tried that but it is not working.
We can't really help much based on "it's not working".
Can you maybe paste in 5-10 example rows of data and then show us an example of the result you would expect the calculation to produce from that sample data?
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
90 | |
89 | |
79 | |
70 | |
69 |
User | Count |
---|---|
226 | |
129 | |
119 | |
84 | |
77 |