Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi All,
So I have a scenarion that requires me to calculate the total number of "distinct transactions" per employee role.
eg. I have the following role titles
1. floor sales rep
2. snr floor sales rep
3. mobile sales rep
4. snr mobile sales rep
5. online/tele-sales rep
I would like to count the total number of transactions that each role does daily.
I have used the following formula
Total Trxns per Employee Title =
Calculate(DISTINCTCOUNT( 'FACT_DAILY_SALES'[SYS_TRXN_ID]), filter('FACT_EmployeeTable',FACT_EmployeeTable[EmployeeTitle]))
There doesn't seem to be an error in the formula but when i add the measure to the visual I get the following error
<<Calculation error in measure 'Sales_Measures'[Total Trxns per Employee Title: Cannot convert 'floor sales rep" of type text to type True/False.>>
Would anyone here be able to assist me with a solution.
Thank you
Solved! Go to Solution.
Hi,
you can try a calculated column
If this post is useful to help you to solve your issue consider giving the post a thumbs up
and accepting it as a solution !
Thanks for the suggestion, however when I attempt it, the formular requires that the statement
var currEmployeeTitle = FACT_EmployeeTable[EmployeeTitle] use a measure in place of FACT_EmployeeTable[EmployeeTitle] so unfotunately it did not work, unless I am missing something.
Hi,
are you sure of having choosen a calculated column and not a measure?
Hi,
you can try a calculated column
If this post is useful to help you to solve your issue consider giving the post a thumbs up
and accepting it as a solution !
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
10 | |
10 | |
8 | |
7 |