Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi guys,
I'm using direct query to get the data from an OLAP cube. The columns Dim_date, Fiscal_year, Fiscal_week, FY, FP, etc are not available in the DAX expression box when typing. This the error i get when i give the expression :
dim_month_1 = MONTH('time'[Dim_date])
The error: (here the [Dim_date] column is a date column in string format)After spending some time researching i was able to learn that i need to aggregate, so i used the following expression:
=SUM('Time'[FP])
As you can see the column 'FP' is just a value in string format, but it still shoes this error:
And when i try and convert it into a value by using the expression:
=VALUE(SUM('Time'[FP]))
This is the error:
Please help, i'm new so if i made a silly mistake, forgive me.
Thanks
what is the format of the FP column in the cube?
if its a string you may need to convert it to a number. Unsure of your system but StrToValue might help, or be a starting point.
I believe StrToValue is not part of DAX's functions and I don't have access to the cube, so there's no way of knowing the format through the backdoor or any way
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 |
---|---|
72 | |
71 | |
57 | |
38 | |
36 |
User | Count |
---|---|
81 | |
67 | |
61 | |
46 | |
45 |