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 All,
Consider below table as example
Consider below table
Project ID | Met | Not Met | Grand Total | Condition = If (Met = Grand Total), 1,0) |
10030-01 | 2 | 2 | 1 | |
10077-03 | 5 | 5 | 1 | |
10093-02 | 8 | 8 | 1 | |
10098-01 | 9 | 9 | 1 | |
1010-01 | 42 | 42 | 1 | |
10119-01 | 13 | 13 | 1 | |
10142-01 | 5 | 5 | 1 | |
10162-01 | 5 | 2 | 7 | 0 |
10310-02 | 7 | 7 | 1 | |
10331-04 | 8 | 8 | 1 | |
10352-04 | 2 | 2 | 4 | 0 |
10376-01 | 12 | 12 | 1 | |
10379-02 | 5 | 5 | 1 |
I want to have a dax which will compare the Met with Grand Total and then if they both matches then it is 1 or else it is 0
once it is done i want to count the ' 1' and then total as sum
In my data set there is month column as well which is connected to dim_date table and that i can take care once the mesure is bulit
Solved! Go to Solution.
HI @Pandu473,
You can try to use the following measure formulas if it suitable for your requirement:
Measure =
VAR summary =
SUMMARIZE (
ALLSELECTED ( 'Table' ),
[Project ID],
"Met", CALCULATE ( COUNTROWS ( 'Table' ), 'Table'[Met/NotMet] = "Met" ),
"Total", COUNTROWS ( 'Table' )
)
RETURN
COUNTROWS ( FILTER ( summary, [Met] = [Total] ) )
Regards,
Xiaoxin Sheng
Hi
I have done pivot form the existing data source to get grand total. How to get that grand total in dax on powerBI
@Pandu473 Refer this screen shot also :
My Data source looks like this and i want to achieve the soultion like what you have mentioned
@Pandu473 , Try this steps:
Step 1: First Create a Measure for Met and likewise for NotMet:
Met Measure = Caluculate(COUNTROWS(TableName),FILTER(TableName,TableName[Met/NotMet Column]="Met")
Step 2: Likewise create for NotMet. Measure.
Step 3: Create Measure for Grand Total.
Grand Total Measure= COUNTROWS(TableName)
Step 4: Create a Measure like below:
Hi
I want distinct count of project id than rows
HI @Pandu473,
You can try to use the following measure formulas if it suitable for your requirement:
Measure =
VAR summary =
SUMMARIZE (
ALLSELECTED ( 'Table' ),
[Project ID],
"Met", CALCULATE ( COUNTROWS ( 'Table' ), 'Table'[Met/NotMet] = "Met" ),
"Total", COUNTROWS ( 'Table' )
)
RETURN
COUNTROWS ( FILTER ( summary, [Met] = [Total] ) )
Regards,
Xiaoxin Sheng
@Pandu473 ,Try this Measure:
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 |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |