countrows if

MP_123

New Member
Joined
Sep 15, 2016
Messages
1
hi,
i am using power bi and i'm try to applying some dax function without success.
datesigndevmarket#usersdev2count
1/1/2016ab cdios,androidUSA100ios2
1/1/2016ab cdios,androidUSA100android2
2/2/16re reios, PCCanada52ios1

<tbody>
</tbody>

i want to add a dynamic measure - count, that counts the rows that are exact the same, except the 'dev2' column.
i want it to by dynamic since i want it to affect from the slicer: for example if i won't choose ios in dev 2, i will get only the second row, and count will be 1.

in sql i would join between two tables and the compare a.date=b. date, etc..
thanks!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hello, and Welcome!

try
Code:
= COUNTROWS(GROUPBY(Your Table Name,[date],[sign],[dev],[market],[#users]))
or use Summarize instead of GroupBy
 
Upvote 0

Forum statistics

Threads
1,216,050
Messages
6,128,498
Members
449,455
Latest member
jesski

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top