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.
The column is MVT_Source in a table called movement and it is like below, what i need is to ADD Column or measure that counts how many GT rows and another measure for how many Rite rows. Finally a measure that will give me the % of dividing number of GT rows by the total number of rows.
MVT_Source |
GT |
GT |
GT |
Rite |
Rite |
GT |
Rite |
Rite |
GT |
Solved! Go to Solution.
Hi @Anonymous
try measures
GT rows = CALCULATE(COUNTROWS('TableMovement'), 'TableMovement'[MVT_Source] = "GT" )
Rite rows = CALCULATE(COUNTROWS('TableMovement'), 'TableMovement'[MVT_Source] = "Rite" )
and then
GT rows % = DIVIDE([GT rows], CALCULATE(COUNTROWS('TableMovement')) )
Hi @Anonymous
try measures
GT rows = CALCULATE(COUNTROWS('TableMovement'), 'TableMovement'[MVT_Source] = "GT" )
Rite rows = CALCULATE(COUNTROWS('TableMovement'), 'TableMovement'[MVT_Source] = "Rite" )
and then
GT rows % = DIVIDE([GT rows], CALCULATE(COUNTROWS('TableMovement')) )
Great! worked for me appreciate your great help .
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
34 | |
15 | |
12 | |
7 | |
6 |