Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi ! I want to count or summarize the alphabets created from the if statement by a measure !
My Data:-
My measure of the if statement:-
Country | Category | LCE | Volume | Value |
Country 1 | Category 1 | C | 0 | 3 |
Country 2 | Category 1 | L | 0 | 4 |
Country 3 | Category 1 | C | 0 | 6 |
Country 4 | Category 1 | C | 1 | 15 |
Country 5 | Category 1 | C | 1 | 15 |
Country 6 | Category 1 | C | 0 | 0 |
Country 7 | Category 1 | L | 0 | 2 |
Country 8 | Category 1 | L | 0 | 4 |
Country 9 | Category 1 | C | 0 | 0 |
Country 10 | Category 1 | E | 0 | 2 |
Country 11 | Category 1 | C | 0 | 3 |
Country 12 | Category 1 | C | 0 | 1 |
Country 13 | Category 1 | C | 1 | 14 |
Country 14 | Category 1 | L | 0 | 4 |
Country 15 | Category 1 | L | 0 | 6 |
Country 16 | Category 1 | C | 0 | 1 |
Country 17 | Category 1 | L | 7 | 143 |
Country 18 | Category 1 | E | 0 | 0 |
The LCE column is a measure created with IF statement:-
I want to count or summarize , that number of countries coming under L, C, E and also the summation of Volume and Value under L,C,E.
My desired answer and structure:-
L | C | E | |
Country Combinations | 6 | 10 | 2 |
Volume | 7.8 | 3.6 | 0.1 |
Value | 164 | 57 | 1.7 |
I used this measue but it is giving the total count of LCE i.e. 18:-
Solved! Go to Solution.
Hi,
This measure returns 13 as the answer which is correct
L Count 1 = COUNTROWS(FILTER(VALUES(Sheet1[ctry_nm]),[LCE]="L"))
Hope this helps.
Hello @souvik900766 ,
Can you share your pbix file after removing sensitive data?
Hello @souvik900766 ,
My measure works well.
@Anonymous
I dont know for me now its showing blank !!!
@Anonymous
Hi PFA link
https://www.dropbox.com/s/5w1q12q8rchf9oj/Help.pbix?dl=0
My desired answer structure:-
L | C | E | |
Country Combinations | XX | XX | XX |
Thanks !
Hi,
This measure returns 13 as the answer which is correct
L Count 1 = COUNTROWS(FILTER(VALUES(Sheet1[ctry_nm]),[LCE]="L"))
Hope this helps.
@Ashish_Mathur ,
Hi,
It worked perfectly !!! Thanks...
Just a small request !
Just pull the Volume CY measure in the table and summarize the volume by L, C, E.
My desired result and structure:-
Thanks in advance !
You are welcome.
I have done it !
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
26 | |
19 | |
14 | |
10 |
User | Count |
---|---|
58 | |
50 | |
44 | |
19 | |
19 |