Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi, I am trying to compare between the count of claims of this period with the count of last period, and filter them by Accounting Center des, My formula works for the periods but when I try to filter by the AccountingCenterDesc I get an error message:
" Can't convert nvarchar values into data type bit"
My Measure formula is :
Measure =
VAR prev =
SELECTEDVALUE ( ClaimFactsStag[PrevReportingPeriod] )
RETURN
CALCULATE (
DISTINCTCOUNT( ClaimFactsStag[Claim] ),
ClaimFactsStag[ReportingPeriod] = prev, ClaimFactsStag[AccountingCenterDesc]
ALLSELECTED ( ClaimFactsStag )
)
any suggestions on how to solve this? If I change data type in my database to varchar would it solve this?
Thank you
Solved! Go to Solution.
Hi Manar,
Please click Modeling-> Data type ->change another data type, and then try again.
Regards,
Jimmy Tao
Hi Manar,
Please click Modeling-> Data type ->change another data type, and then try again.
Regards,
Jimmy Tao
Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
97 | |
84 | |
67 | |
60 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |