The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Solved! Go to Solution.
Hi @aishaakhter18 ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2)Click on "transform data" to enter the power query editor, select the three columns and right click on "unpivot columns".
(3) Click "Close and Apply" and then we can create a measure.
Measure = CALCULATE( COUNTA('Table'[Value]),'Table'[Value]<>BLANK())
(4) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @aishaakhter18 ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2)Click on "transform data" to enter the power query editor, select the three columns and right click on "unpivot columns".
(3) Click "Close and Apply" and then we can create a measure.
Measure = CALCULATE( COUNTA('Table'[Value]),'Table'[Value]<>BLANK())
(4) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
you don't need to merge the 2 columns if it is only for counting Rows where Country = USA.
Just create a measure that COUNTROWS where [Countries with Insights] = "United States" and another COUNTROWS where [Countries Awareness] = "United States". Then do the SUM of both measures.
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Ok got it guess, but I have three col with various countries names,and some of them have like 24 countries seperated by comma in various rows that the reaosn I was merging them and then counting, the method you are telling me i need to creat three seperate col, then get sum of then in one more col, so total 4 new cols, but I will try and see thanks
It sounds like you need to use Power Query to do some cleaning and transformation.
Anyway let me know.
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
User | Count |
---|---|
25 | |
12 | |
8 | |
8 | |
7 |
User | Count |
---|---|
27 | |
12 | |
12 | |
12 | |
6 |