Quantcast
Channel: Desktop topics
Viewing all 217577 articles
Browse latest View live

DAX Code Functions while using slicer

$
0
0

Hello! I have been struggling to find an efficient way to filter my data in a card using measures (and DAX). I am currently pretty new to the language so I am not sure what really is capable or not. With saying that I will explain the issue I am having and am open to any other comments and or critiscims. 

 

I currently want to display a card value of a sum of values dependendant on the year.  For example my data table is setup similar to that below. 

 

Year      Building    Total MTeCO2

2015      AAA          xx

2015      AA            xx

2016      AAAA       xxx 

2016      AAA         xx

2016      AA           xxxx 

2017      AAA         x 

2017      AA            xx

 

Ideally I would not like to create a custom column or table. I was hoping to be ableto use a a slicer to filter the table by years then be able to sum the values for that specific year as needed. The DAX code I have been using reads: 

 

"Measure = CALCULATE(sum(Building_Reports2[Total MTeCO2]),Building_Reports2[Year])"
 
Unfortunately this code does not find the sum of the values for the specific year that is filtered but rather finds the sume of the entire unfiltered table. 
 
Any tips, comments  or suggestions are welcomed! Thanks!
 
Austin I (: 

Connect Power BI to Jira On Premise

$
0
0

Hello! I'm still fairly new to PowerBi so I was hoping I'd be able to get some help. Our company's JIRA site is on premise, meaning I don't have access to the http://sitename.atlassian.net. How would I proceed in connecting JIRA and Power BI? I have seen a few different discussion boards that have some sort of unaccessable JIRA PBIT template, so if an updated, accessible one (or another solution) could be provided, that'd be great. Thanks!

Measurement Calculation based on different Buy-Types

$
0
0

Hi Community

 

I would like to create an Pacing% Measurement which calculates based on the related revenue type. For example:

 

Pacing% = IF(LineData[Revenue-Type]="VCPM";
DIVIDE([Helper:Viewable-Imps];[Expected Budget]);
IF(LineData[Revenue-Type]="CPC";
DIVIDE([Helper:TotalRevenue];[Expected Budget]);
IF(LineData[Revenue-Type]="CPCV";
DIVIDE([Helper:TotalRevenue];[Expected Budget]);0)
))
 
But this if statements don't work on measurements just on custom columns. But the results in columns are static and wrong.
Does someone of you have an idear how to solve this smart?
 
THX,
Christian

Finding all inputs and displaying the distance based on long and lat

$
0
0

Hi Everybody! 

 

Previously this forum has given me so much help. However, now i'm going to ask for some more, and I think it's a complicated one I've gotten stuck with. 

 

I've run into an issue in my list of salmon farms. Basicly, I want to based on Longitude and Latitude find all farms within 200 km whenever there is a process ongoing on one of the previously tagged farms. 

 

Lang-Lot.PNG

 

So, lon and lat is relatively self explanatory. The next cells until "annet virkestoff ID" is not important here. 

The collumn "Annet virkestoff ID" is a collumn used to tag events at farms. So if this is triggered, i want all farms in within 200 km to be tagged, so i can withdraw the data, filtered by week. I've allready calculated the distance from a 0 point in the "Distance_km from 0.0" collumn. 

 

Any ideas for next steps? 

 

Cheers, 

 

Use one slicer for two calculated tables

$
0
0

I have two summary tables that let me calculate a sum of sales by business for two different product lines (Prod a is in one summary table and Prod b is in another summary table). I calculated a rank by sales for each summary table. Here is some sample data:

 

Prod A 

Company             Sales                      Rank

Company 1          $100,000              1

Company 2          $95,000                 2

Company 3          $90,000                 3

 

Prod B

Company             Sales                      Rank

Company 1          $100,000              1

Company 4          $95,000                 2

Company 5          $90,000                 3

 

These relate back to a Company table, and I use this relationship for some cross filtering. The join looks like this:

prod join img 1.jpg

 

I want to create a single slicer that allows me to show the top n from Prod A and Prod B. I was hoping I could create an calculated table with a numeric range of 1 – 50, and then join that back to the Prod A and Prod B tables, like this:

 

prod join img 2.jpg

 

 

However, I can’t link to both Prod A AND Prod B, since it causes the dreaded “Introduce Ambiguity” error.

I also tried creating a calculated column in my two Prod A and Prod B tables that use the max value from Top 50, and I then put a slicer on the page using the Top 50 value. However, I forgot that I can’t force a calculated column to refresh, thereby making this useless.

 

Does anyone have insight into how to make this work using my existing architecture? I could merge the summary tables into a single summary table, and then I would stip away the ambiguity. However, it seems like there has to be a way to use a single slicer to filter Prod A and Prod B at the same time.

Any thoughts or suggestions would be most appreciated.

Time Intelligence with 2 calendars

$
0
0

Hi!

 

This is my scenario: 

I have 1 fact table [Fact] with 2 dates and 2 calendars, [CalendarA] and [CalendarB]. I have both calendars with active relationships with the facts table. 

 

One date is [Date A] and the other one is [Date B]. 

I have two tables in one I use these two formulas: 

 

 

Measure A = 
CALCULATE(
    DISTINCTCOUNT( TableA[Number] );
    CalendarA[DateA]
)

Measure A LY = 
CALCULATE( 
    [MeasureA];
    SAMEPERIODLASTYEAR( TableA[DateA].[Date] )
)

 

And in the other table I use these 2 formulas 

Measure B = 
CALCULATE(
    DISTINCTCOUNT( TableB[Number] );
    CalendarB[DateB]
)

Measure B LY = 
CALCULATE( 
    [MeasureB];
    SAMEPERIODLASTYEAR( TableB[DateB].[Date] )
)

Now, my problem is that I want to filter by CalendarA both tables but the filter only works for the first table visual and not the second one. 

 

Maybe my approach is incorrect.

 

Any ideas?

 

Thank you in andvance 

Table visual automatically summarizing - how do i avoid it?

$
0
0

Hi there,

 

My table visual is automatically summarizing the data when the whole row matches. I have clicked Don't summarize on all the columns. The only way I seem to be able to get it to show all the rows in the table is to add an Index column in Power Query and then drag it onto the table visual, treating it as a primary key in effect.

 

I have had this problem before and feel there is something obvious I need to do, but I can't remember!

 

Thanks.

Trying to enter 2x2 table manually and getting the Microsoft.PowerBi.OleDb not registered error

$
0
0

Just installed Power BI Desktop Version: 2.65.5313.1562 64-bit (January 2019).

 

Launched Power BI Desktop, clicked Enter Data from the Home tab, and entered a 2 x 2 table of simple text.


Clicked Load and encountered the following error:

------------------------------------------------------------------------------------

Table 1 - Failed to save modifications to the server. Error returned: 'The provider 'Microsoft.PowerBi.OleDb' is not registered. The following system error occurred: Class not registered A connection could not be made to the data source with the Name of 'e80caddf-...'. The current operation was cancelled because another operation in the transaction failed.'.

------------------------------------------------------------------------------------


Quickbase Connector (Beta)

$
0
0

I tried using the new beta version of the QuickBase connector, I entered the url and API User Token key as prompted, ensured the correct user token is saved in Data Source Settings, and when I try to connect I get an error:

 

Authentication Fail with error: The page you have requested can be viewed only by users who have signed in. Please sign in to proceed

 

I am signed in to Power BI, so not sure what the deal is. Any ideas??

Tracking time over a date range--insists on doing count

$
0
0

I have a custom column that computes the duration/datediff of two separate dates.  It's working fine and when I put this into a standard data grid, it appears appropriately (see below).

 

However, when I attempt to do a line graph showing the time over a date axis--it insists on doing count.  If I try max, it appears it sums it over the date range--and gets larger.  How can I do a date axis with the duration for each date?

 

Time in Columns.png

Entering credentials for a SQL data source

$
0
0

Hello,

 

I already have three local data source connections in my current file that use SQL, and normally when I add them by New Source > SQL Server, I get prompted to enter my SQL credentials.

 

I'm going through this through the same method, but PowerBI doesn't give me an opportunity to enter the SQL credentials, it goes from entering the server name and database name, directly to the screen to select the tables; of which, is empty, as it's not authenticated.

 

Can anyone assist? Is there a way to add a data source via a different method?


Any help you can offer would be appreciated.

 

Kind Regards,

Dayna

Carry a field through when expanding content?

$
0
0

Hi all,

I have a table which contains metadata for various files stored in Blob. This table contains a unique key for each file.

 

1.PNG

 

When I expand out the content, I get the data inside each file appended into one giant table (which is what I want). However, I need to be able to identify which file each entry originated from. Is this possible?

Thanks!

 

Date - 1month

$
0
0

Hello
I have a date column, I would like to display a date column -1Month.
What is the DAX formula please?
Thank you.
cordially

date-1.PNG

See records - too many results...

$
0
0

Hi,

 

I'm really surprised when I make a right click on a category of one of my pie chart => I got too much record !!!

 

Let me explain => I select one line in a matrix => pie chart is updated

 

1.pngBut when a make a right click on the blue category (1 result), I got a big list:


2.pngSomebody has an idea ?

 

Regards,

CR

Creating a column using different clauses and like statements

$
0
0

Hi everyone,

We are in the process of moving some dashboards from QlikView to PBI.  Right now we are trying to recreate this field / column in PBI.

 

Here is the load statement in Qlik:

 

first_res_date = (select min(entry_date)

     from "whd_prod".dbo."HISTORY_ENTRY" he

        where he.JOB_TICKET_ID = jt.JOB_TICKET_ID

        and (he.ENTRY_TEXT like '%to Resolved'

         or  he.ENTRY_TEXT like '%to Closed'))

 

What this is is creating a first resolution date.  Whether is it put in resolved or closed first.  Using this field helps with math later on in determining timing to resolved/closed from reported dated.

 

So far I have this in PBI:

Column = MIN(HISTORY_ENTRY[ENTRY_DATE].[Date])
 
I just don't understand the 'where" and 'and' and 'or' statements.  They don't pop up when entering them.
 
Any assistance or point me in the right direction is much appreciated.
Thanks!

Local Date Table Error

$
0
0

Hi,

 

My model was working fine until I made some changes to how it operates. Now, it's giving me the below error:

Table 'LocalDateTable_0f293c40-125a-4fa7-b42d-c26262d8fda8' with ShowAsVariationsOnly property set to '1' must be a target of a variation when variation notation is enabled.

 

I tried following these instructions to no avail, which essentially say to disable auto date/time, refresh, enable it again, and refresh.

 

Any ideas on what causes this problem and/or how to fix it?

 

Thanks!

Visual Filter on Matrix Column

$
0
0

Hi,

 

I have a matrix that requires a visual filter (it's a 1 or 0 flag that gives me month to date compared to this time last month and this time last year on the same month). 

 

For asthetic reasons the matrix needs to have the dates in the columns along the top. As soon as I move them from row to columns the visual filter no longer works. Apparently the visual filter on a matrix only applies to rows.

 

Is there any way to make a visual filter apply to columns on a matrix?

PowerBi Desktop: Can I use SAML to SSO from Power BI to SAP HANA?

$
0
0

I think following SAML setup link is for cloud based PowerBI apps and not valid for powerBI Desktop:

 

https://docs.microsoft.com/en-us/power-bi/service-gateway-sso-saml

 

I completed SAML setup on SAP HANA using ADFS as identity provider. When I am trying to connect from PowerBI Desktop using windows credentials, it's failing. HANA traces shows that it's using Kerberos method when tryng to use windows credentials from powerBI Desktop. I have not setup gateway for desktop because that's meant for cloud based PowerBi apps (correct me if i am wrong). Could someone please confirm if PowerBI desktop supports SAML for SSO?

 

Thanks,

 

display the value of a field according to the values of my slicers

$
0
0

Hi All,

need you help please.

I've got a COMMENTS table with Year, Country & Comment values.

 

i want to display the Comment Values if the Year & Country matchs to my slicers (from my Date table and Country Table). If  no value is selected in both slicers, then display "no data ".

 

How can i do that ?

 

thanks Smiley Happy

Matrix Sort Columns by Rows

$
0
0

Hi community!

 

I have a matrix with different products on Columns and different countries on Rows. As my value I have a calculated measure. I would like to be able to sort my products within the different countries. Eg. first sort by US, so the columns would be sorted as (Product1, Product2, Product3, Product4). Then later sort by SE, so the columns would be sorted as (Product2, Product4, Product3, Product1). And so forth.

 

It seems very simple but I can not get it to work. I have tried many different workarounds and couldn't find a solution online. So now I turn to the community for help. 

 

Best regards

Soren

Viewing all 217577 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>