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.
Hello everyone !
It is possible to create a measure on DAX that calculates the rows of a column with one formula and the total of the same column with another formula
Thank you in advance
Solved! Go to Solution.
Hi @hhaimer
yes possible using IF ( ISINSCOPE ( 'Table'[Slicing by column] ), [normal formula], [Toatal formula] )
Hi, @hhaimer
According to your description, you want to calculate different values according to different conditions, you can use the switch(true()) function to achieve your logical judgment needs, if you want to count the number of rows, you can use the count() function to get the number of rows of the corresponding column.
If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @hhaimer
yes possible using IF ( ISINSCOPE ( 'Table'[Slicing by column] ), [normal formula], [Toatal formula] )
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 |
---|---|
15 | |
10 | |
9 | |
8 | |
6 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
10 |