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.
I have table with name, month and rate. What would be the appropriate DAX to measure percentage of False only from that specifc month (not the total column of Rate)?
for e.g. Jan has 6 names and 3 false. should return 50% under Jan.
Month | Name | Rate |
Jan | Adam | TRUE |
Jan | Mark | FALSE |
Jan | Jane | TRUE |
Jan | Jacob | FALSE |
Jan | Steven | TRUE |
Jan | Jones | FALSE |
Feb | Adam | TRUE |
Feb | Mark | FALSE |
Feb | Jane | TRUE |
Feb | Jacob | FALSE |
Feb | Steven | TRUE |
Feb | Jones | FALSE |
Mar | Adam | TRUE |
Mar | Mark | FALSE |
Mar | Jane | TRUE |
Mar | Jacob | FALSE |
Mar | Steven | TRUE |
Mar | Jones | FALSE |
Solved! Go to Solution.
Some of the months are not covered with TRUE statements, that is why the DAX you shared was effective only at individual row level, but not the Grant total.
What I did using your DAX is created another measure
Create a measure like this:
PercMeasure: = COUNTROWS(FILTER(Table3, Table3[Rate] = TRUE)) / COUNTROWS(Table3)
Kind regards
Djerro123
-------------------------------
If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.
Keep those thumbs up coming! 🙂
Proud to be a Super User!
As a start this is good, I am getting individual measures correct for each month.
but the grand total is calculating on all rows instead of specific rows.
for e.g. if Month of Feb has all False, filter is still using Feb to divide the grant total.
Is there any DAX that only calculates the TRUE from each month and returns grand total based on the TRUE found in those months?
COUNT_TRUE = CALCULATE(
COUNT(Sheet6[Rate]),
FILTER(Sheet6,
Sheet6[Rate]="TRUE"&&
Sheet6[Month]=EARLIER(Sheet6[Month])))
The same way to calculate the number of months, you can get the rate of each month.
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Proud to be a Super User!
Some of the months are not covered with TRUE statements, that is why the DAX you shared was effective only at individual row level, but not the Grant total.
What I did using your DAX is created another measure
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
116 | |
82 | |
47 | |
42 | |
34 |
User | Count |
---|---|
186 | |
80 | |
72 | |
48 | |
45 |