Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello Experts,
Could you please advise how do I get the below query results in column or measure?
select count(i.incident_id)
from ATB_Incident i,
ATB_Disposition d
where i.Disposition = d.DispositionCode
and d.Chargable = 'Y'
Thanks
Solved! Go to Solution.
@Anonymous
I have an idea
Enter this please and tell me if there is an error or no :
Measure = CALCULATE(COUNT(ATB_Incident[Incident_Id]),ATB_Disposition[Chargable]="Y")
- Quentin
Hi @Anonymous
The formula you are looking for will look like this : (You need to have relations betweens your tables)
Measure = CALCULATE(COUNT(Incident_id);Dispotion=DispositionCode;Chargable="Y")
It's not 100% exact as I don't really know what your table looks like but if you adapt it, it should work !
- Quentin
Thanks @quentin_vigne for your prompt response.
But its giving error at ";Dispostion" and at ";Chargable"
If I just plug the table names in measure it should look like
Measure = CALCULATE(COUNT(ATB_Incident[Incident_Id]);ATB_Incident[Dispotion]=ATB_Disposition[DispositionCode];ATB_Disposition[Chargable]="Y")
Please help! Thanks..
@Anonymous
I read something wrong, my bad.
Here is something that should be correct :
Measure = CALCULATE(COUNT(ATB_Incident[Incident_Id]);ATB_Disposition[Chargable]="Y")
Do you have a relation between your two table ?
- Quentin
yes, I have join on tables like
ATB_Incident.Disposition = ATB_Disposition.DispositionCode
And query is
select count(i.incident_id)
from ATB_Incident i,
ATB_Disposition d
where i.Disposition = d.DispositionCode
and d.Chargable = 'Y'
Please advise, thanks!
@Anonymous
I have an idea
Enter this please and tell me if there is an error or no :
Measure = CALCULATE(COUNT(ATB_Incident[Incident_Id]),ATB_Disposition[Chargable]="Y")
- Quentin
Thank you so much @quentin_vigne It worked!!!
So I can just go on adding more filter conditons in CALCUALTE dax?
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 36 | |
| 33 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 73 | |
| 72 | |
| 38 | |
| 35 | |
| 26 |