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, I am trying to get the total practices prescribed by doctor. I have two tables on the one hand all the consultations that the doctor attended and on the other all the practices carried out. I was able to apply a series of measurements and calculations but I can't make the data segmentation work for me.
The practical column Matrix I calculate using two measures the first counts all the columns of a table:
Solved! Go to Solution.
You can use the following measures
Practicas Densitometria 2 =
COUNTROWS (
FILTER (
Practicas,
Practicas[PRACTICA] = "DENSITOMETRIA"
&& Practicas[MEDICO] IN VALUES ( 'Atencion en Consultorios'[MEDICO] )
)
)
Practicas RX 2 =
COUNTROWS (
FILTER (
Practicas,
Practicas[PRACTICA] = "RX"
&& Practicas[MEDICO] IN VALUES ( 'Atencion en Consultorios'[MEDICO] )
)
)
Or create a relationship between two tables on MEDICO columns. Then your original measures also work.
Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.
You can use the following measures
Practicas Densitometria 2 =
COUNTROWS (
FILTER (
Practicas,
Practicas[PRACTICA] = "DENSITOMETRIA"
&& Practicas[MEDICO] IN VALUES ( 'Atencion en Consultorios'[MEDICO] )
)
)
Practicas RX 2 =
COUNTROWS (
FILTER (
Practicas,
Practicas[PRACTICA] = "RX"
&& Practicas[MEDICO] IN VALUES ( 'Atencion en Consultorios'[MEDICO] )
)
)
Or create a relationship between two tables on MEDICO columns. Then your original measures also work.
Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.
@Syndicate_Admin , This approach will work when Practices[Prescriptions] is an independent table
But not very clear what you want
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
I attach excel file of what I intend to achieve. https://sanatoriolaslomas-my.sharepoint.com/:x:/p/vgalvan/ETsnqwlzo25KgKgUddSvNAkBxtzB2I0x-Fukx7jHxX...
And the pbix so I wouldn't be working https://sanatoriolaslomas-my.sharepoint.com/:u:/p/vgalvan/EdYPc94Rx2JOnbJ2cln4rp8BeMzRzYBMZxM2YIxRth...
Thank you!
User | Count |
---|---|
123 | |
76 | |
63 | |
50 | |
50 |
User | Count |
---|---|
175 | |
125 | |
60 | |
60 | |
58 |