cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Anonymous
Not applicable

Slicer not populating

Hi,

I have a slicer that is fine in desktop, but errors out once it refreshes over the gateway in the service.

I've loaded data to Power Query - 3 columns, all text type.

I've added a calc column in DAX using Switch(True() to categorize codes from Column A

All fields are text type and format - including my calculated column.

Where am I going wrong? I can't figure out why this is not populating after refresh???

 
Service Type = SWITCH(TRUE(),
               'Service Codes'[ServCode]="ADMIN", "ADMIN",
               'Service Codes'[ServCode]="PTO", "PTO",
               'Service Codes'[ServCode] IN {"S0215", "S0215-U1", "S0215-U2", "SA300"}, "Mileage",
               CONTAINSSTRING('Service Codes'[ServCode], "T10"), "Service",
               'Service Codes'[Description] = "Aggregate", "Aggregate",
               "Training"
)

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I've resolved this. It had to do w/ the Data Type being left as Any in power Query - adding the Text type resolved the issue. 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

I've resolved this. It had to do w/ the Data Type being left as Any in power Query - adding the Text type resolved the issue. 

v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.

Best Regards
Lucien

v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Try to remove the calculated columns and then refresh and then add the columns back.

 

If you do it this way, update the data model and then load the PBIX or Excel file and overwrite the old data set, you will not break all of your reports, dashboards, etc.

 

similar error refer :

https://community.powerbi.com/t5/Power-Query/Can-we-update-the-dataset-without-deleting-and-adding-again/m-p/3024#M892 

https://community.powerbi.com/t5/Service/Calculated-Columns-not-updating-on-scheduled-refresh/m-p/793615 

 

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors