powerpivot

PowerPivot Slicer selection based on cell value using VBA

流过昼夜 提交于 2019-12-02 10:13:59
I'm having some issues in automating a PowerPivot slicer using vba. What I am trying to do is have the slicer update and only select what is in a certain cell. So for example assuming the cell was J3 then whatever was typed in J3 that's what would get updated in the slicer. My values in my slicer are just numbers. The code I currently have (which doesn't work) throws a run time error is below. The formula name of the slicer is "Syndicatenumber" and the cell I would like it to look at and then update is cell J3. Anythoughts/help would be much appreciated. Many thanks Public Sub Worksheet_Change

MS Access 2010 SQL Select Into Calculated Column Issue

天涯浪子 提交于 2019-12-02 05:17:11
问题 I have a pretty extensive Union query with calculated columns that I'm trying to just "paste values" into a table through a separate SELECT INTO query. I get the error below when executing the query. Is there any way around this without using VBA? “Calculated columns are not allowed in SELECT INTO statements.” For context: Normally, I'd be able to link up to the union query through PowerPivot in Excel but for some reason PowerPivot does not recognize the union query. If I export the union

Force mdx query to return column names

喜欢而已 提交于 2019-12-02 01:59:54
问题 When connecting from powerpivot to SSAS, I got the following problem - if for some reason no rows are returned by mdx query, no column names are returned either and powerpivot gives an error. When executing such a query in SSMS I got 0 rows if mdx returns nothing and 2 rows if mdx returns 1 row (column names and the row itself). So - can I somehow force SSAS to return column names? Query currently looks a bit like this: SELECT NON EMPTY {[Measures].[Measure1]} ON COLUMNS, NON EMPTY {Filter(

Force mdx query to return column names

六月ゝ 毕业季﹏ 提交于 2019-12-02 00:55:41
When connecting from powerpivot to SSAS, I got the following problem - if for some reason no rows are returned by mdx query, no column names are returned either and powerpivot gives an error. When executing such a query in SSMS I got 0 rows if mdx returns nothing and 2 rows if mdx returns 1 row (column names and the row itself). So - can I somehow force SSAS to return column names? Query currently looks a bit like this: SELECT NON EMPTY {[Measures].[Measure1]} ON COLUMNS, NON EMPTY {Filter([DimLocalDate].[Date].&[20110101]:[DimLocalDate].[Date].&[20120101], [JobStatus].[JobStatus].&[1] } ON

Power BI - Find closest location based on Lat/Lng

♀尐吖头ヾ 提交于 2019-12-01 22:36:32
问题 I am new to Power BI and DAX, so I hope you can help me. I have two tables without any relationship: Table A contains lat/lng and date of tracked positions. Table B contains lat/lng and names of all stadiums. I want to find the closest stadium near the tracked position. Also if possible I want to validate, if the position was in a specific radius of that stadium. Any help greatly appreciated. 回答1: Here's one possible approach: First, calculate the minimal distance using the Haversine function

Power BI - Find closest location based on Lat/Lng

瘦欲@ 提交于 2019-12-01 21:37:01
I am new to Power BI and DAX, so I hope you can help me. I have two tables without any relationship: Table A contains lat/lng and date of tracked positions. Table B contains lat/lng and names of all stadiums. I want to find the closest stadium near the tracked position. Also if possible I want to validate, if the position was in a specific radius of that stadium. Any help greatly appreciated. Here's one possible approach: First, calculate the minimal distance using the Haversine function. Add this as a calculated column to your Tracked table. Nearest = MINX(Stadiums, ROUND(2 * 3959 * ASIN(SQRT

Can I compare values in the same column in adjacent rows in PowerPivot?

南楼画角 提交于 2019-12-01 09:38:49
问题 I have a PowerPivot table for which I need to be able to determine how long an item was in an Error state. My data set looks something like this: What I need to be able to do is to look at the values in the ID and State columns, and see if the value in the previous row is ERROR in the State column, and the same in the ID column. If it is, I then need to calculate the difference between the Changed Date values in those two rows. So, for example, when I got to row 4, I would see that the value

How do you copy the powerpivot data into the excel workbook as a table?

隐身守侯 提交于 2019-12-01 06:01:04
I have data in powerpivot that I've modified and I'd like to place it into the workbook as a regular table (and not as a pivottable). I need this so that I can run use the table for some vlookups from another worksheet in the same workbook. I found this answer: link which I will try and summarize with out cutting and pasting to much. This assumes you have powerpivot installed. goto powerpivot and "import from and external source" the data you want to munge and bring back into the workbook as a table Key here is to select the checkbox “Enable selection of multiple tables”. when prompted at the

How do you copy the powerpivot data into the excel workbook as a table?

隐身守侯 提交于 2019-12-01 02:55:52
问题 I have data in powerpivot that I've modified and I'd like to place it into the workbook as a regular table (and not as a pivottable). I need this so that I can run use the table for some vlookups from another worksheet in the same workbook. 回答1: I found this answer: link which I will try and summarize with out cutting and pasting to much. This assumes you have powerpivot installed. goto powerpivot and "import from and external source" the data you want to munge and bring back into the

Share and protect online an Excel document (using Powerpivot), without Sharepoint & Power BI?

 ̄綄美尐妖づ 提交于 2019-12-01 02:06:08
问题 One of my client has made this incredible (and really huge) Excel document with many data sources, sheets, Powerpivot tables, graphs, etc... Awesome work. He want to share it with authorized people but protect his valuable content (aka data sources and document 'logic'). Users may be able to use the filters for example but in view mode only. Unfortunately, Sharepoint is not an option for my client. Here's what he say about his experience: As part of its offerings Office 365 including