Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello All ,
I have created 2 measure which is as per this
1 is
Hi @x0 ,
Based on the formula you provided, it looks like you want to divide the first measurement by the second measurement. I have tried the following modification, please refer to it:
Total Move insq percent =
VAR LeasingAgentsWithCustomData =
FILTER (
'Move Insq',
'Move Insq'[MonthIndex]
IN VALUES ( 'CustomTable'[MonthIndex] )
&& 'Move Insq'[YearPart]
IN VALUES ( 'CustomTable'[Year] )
&& 'Move Insq'[Property]
IN VALUES ( 'CustomTable'[Property] )
&& 'Move Insq'[First Name] <> BLANK ()
)
RETURN
DIVIDE ( COUNTROWS ( LeasingAgentsWithCustomData ), COUNTROWS ( 'Move Insq' ) )
Total Names Count Divided by 3 =
VAR SelectedMonths =
VALUES ( 'CustomTable'[MonthIndex] )
VAR SelectedYears =
VALUES ( 'CustomTable'[Year] )
VAR SelectedProperties =
VALUES ( 'CustomTable'[Property] )
RETURN
DIVIDE (
COUNTROWS (
FILTER (
'Move Insq',
'Move Insq'[MonthIndex]
IN SelectedMonths
&& 'Move Insq'[YearPart]
IN SelectedYears
&& 'Move Insq'[Property]
IN SelectedProperties
&& 'Move Insq'[First Name] <> BLANK ()
)
),
3
)
Final Measure1 =
DIVIDE(
[Total Names Count Divided by 3],
[Total Move insq percent]
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @v-kongfanf-msft
seems like your provided solution work for me
but i need some modification
lets look this measure first
Total Names Count Divided by 3 = VAR SelectedMonths = VALUES ( 'CustomTable'[MonthIndex] ) VAR SelectedYears = VALUES ( 'CustomTable'[Year] ) VAR SelectedProperties = VALUES ( 'CustomTable'[Property] ) RETURN DIVIDE ( COUNTROWS ( FILTER ( 'Move Insq', 'Move Insq'[MonthIndex] IN SelectedMonths && 'Move Insq'[YearPart] IN SelectedYears && 'Move Insq'[Property] IN SelectedProperties && 'Move Insq'[First Name] <> BLANK () ) ), 3 )
on this i dont want to divide with 3 i just want when i select multiple divide with that select month for example i selected only 8 month 2023 measure should divide with 1 and if selecte 8+9 2023 should be divide with 2
now same thing i want for this measure
Total Move insq percent = VAR LeasingAgentsWithCustomData = FILTER ( 'Move Insq', 'Move Insq'[MonthIndex] IN VALUES ( 'CustomTable'[MonthIndex] ) && 'Move Insq'[YearPart] IN VALUES ( 'CustomTable'[Year] ) && 'Move Insq'[Property] IN VALUES ( 'CustomTable'[Property] ) && 'Move Insq'[First Name] <> BLANK () ) RETURN DIVIDE ( COUNTROWS ( LeasingAgentsWithCustomData ), COUNTROWS ( 'Move Insq' ) )
same as per first and the final measure should perfororm
Final Measure1 = DIVIDE( [Total Names Count Divided by 3], [Total Move insq percent] )
Hello @v-kongfanf-msft
As per your Exercies
result appear wrong value
please have a look ,
Total Move insq Percent showing 0.29 but actual is 14.67
Final Measure should be 1.67/14.67 = 11% , 9.33/14.67= 64 % , 3.00/14.67 = 20% , 0.67/14.67 = 5% .
is any issue with my custom table ? here is my custom table
Hi @x0,
Can you tell me what is your problem in detail? Like I understand you are not getting 100% but what should be the value you are expecting. Can you provide some screenshots that will help?
Hello @govindarajan_d
Now look Below screen shot .
marked with yellow mark is my final measure which is doing divide Total Names Count Divided by3 / Total Move insq percent this 2 measure i already shared on my train message
but the final measure appear 100% for all row which totally wrong its should to as per screen shot
look at the value
1.67 9.33 3.00 0.67 this all value from my measure Total names Count divided by 3
and look this values 14.67 this value come from measure 2 which is total move insq percent
so this is my problem. and actually when you do 1.67/14.67 = 11% , 9.33/14.67= 64 % , 3.00/14.67 = 20% , 0.67/14.67 = 5% . should be reflect this value but all row showing 100 %
let me know if need additional information.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
25 | |
12 | |
9 | |
9 | |
9 |
User | Count |
---|---|
21 | |
14 | |
14 | |
13 | |
13 |