"need help"
335 TopicsHow to make a DAX calculation return BLANK rows
I'm working on a Power Bi template for my company. Since we are a global comapny i added Time Zone tables that help the end-user filter the visual for their Time Zone. Now I'm trying to create a DAX measure that will get the values in a DATE/TIME type column and sum the given UTC Offset in Hours, however I'm having a hard time when there's no value in a give row, DAX will just either not return the rows with blank or return the offset. What I'm trying to achieve is a function that will ignore the blank values and still return them, and when there is a value actually SUM the End Time UTC with the Offset. Note: [Current UTC Offset] is a measure that returns a decimal number from -12 to +12 How can i achieve this?Solved721Views1like2CommentsDynamic Table Visual - Same date last Year
Hi Power BI Community, I have a table in which i have date, time, temperature, humdity and power column is in another table and I want to create a table visual where the user selects the date from date slicer and the table visual shows same date last year date, time, temperature, humidity and power. I have a table visual which shows current selected date and other parameters but I want to see the same date last year as well. I have houlry data per day and it should be same in the table visual as well. Please let me know how i can achieve this. Thank you. Regards, Ibrahim.Solved721Views0likes4Commentshow to hide other two columns in same table
Hi Team, i have a requirement that is we have a table like below , Requesting please have look and provide us an update Employee Department Region Email A HR India [email protected] B HR Switzerland [email protected] C Sales Sweden [email protected] D Sales Spain [email protected] When we add slicer on the employee column once filter A then should come below table out of 4 column Department Region Sales India Sales Switzerland HR Sweden HR Spain second once we filter C then should come below table out of 4 column Region Email India [email protected] Switzerland [email protected] Sweden [email protected] Spain [email protected]Solved799Views0likes4CommentsDynamically change measure/column based on toggle button or slicer
Hi Team - I created a Direct Lake model based on the Lakehouse SQL endpoint, and one of the tables contains two URL columns. We need to display the URL column in a table chart, dynamically showing either URL1 or URL2 based on the tenant name. If a user opens the report in Tenant "A," it should display URL1. If a user opens the report in Tenant "B," it should display URL2. By default, the URL should be URL1. I researched possible solutions and found the following approaches: Tenant Selection Table – Create a table in Direct Lake with tenant names (Tenant A & Tenant B) and use a measure to switch between URL1 and URL2 based on the selected tenant in a slicer. Toggle Button – Use a toggle button to switch between Tenant A & Tenant B, defaulting to URL1 unless another option is selected. Is there a way to achieve this behavior without creating a table in Direct Lake? I noticed that calculated tables are not supported in Direct Lake. Thanks, AbhiramSolved1KViews0likes4CommentsNot show Sum or Average in Total (PIC INCLUDED)
I have a matrix table with two rows. Main one is C1, and the second is C2. I then have C3 for values. I want to display the sum only by C2 as in this situation it doesnt make sense to show C1 totals. Is there a way to omit the numbers in the main category of C1? I have displayed a pic. Any help would be appreciated. So omit the 15 under AAA, BBB, etc. Just clicking row totals doesnt work because I cannot have the end-user click the plus sign and have it roll up to that AAA = 15 ever.1.3KViews0likes7CommentsCalculate cumulative total by multiplying value to itself.
Hi. Asking for your help on calculating cumulative total by multiplying the average value to itself. I want to achieve the line chart below. My example is Id 1. For the data model the relationship of date table to Table 1 is inactive because there is another active relationnship in that table. For the sake of simplicity I just shown how End Date is connected to the date table as well as Start date from another table to the date table. Thank you in advance for your help.Solved1KViews0likes4CommentsNeed to capture state with min change date for every state as shown from table1 to table 2
Hi, Help me on this, I have table1 contains historical data i need to achieve Table 2, Need to capture min change date of every state if it was repeated state after state it should also capture. Table 1 ID State ChangeDate 1 Proposed 08-03-2024 00:00 1 Proposed 09-03-2024 00:00 1 Analysis 25-03-2025 00:00 1 Authoring 26-03-2025 00:00 1 Authoring 27-03-2025 00:00 1 Blocked 06-02-2025 00:00 1 Blocked 07-02-2025 00:00 1 Analysis 08-02-2025 00:00 2 Proposed 08-03-2024 00:00 2 Authoring 25-03-2025 00:00 2 Analysis 29-07-2024 00:00 2 Blocked 06-02-2025 00:00 2 Blocked 07-02-2025 00:00 2 Authoring 08-02-2025 00:00 Table 2 Id State MinChangeDate 1 Proposed 08-03-2024 00:00 1 Analysis 25-03-2025 00:00 1 Authoring 26-03-2025 00:00 1 Blocked 06-02-2025 00:00 1 Analysis 08-02-2025 00:00 2 Proposed 08-03-2024 00:00 2 Authoring 25-03-2025 00:00 2 Analysis 29-07-2024 00:00 2 Blocked 06-02-2025 00:00 2 Authoring 08-02-2025 00:00 Thanks Praveen KumarSolved2KViews0likes10CommentsHow to show latest date as default selection in a slicer.
Hi Team, Please help me out with this query. How to show latest date as default selection in a slicer. For Example, we have a date column contains date from 01-10-2022 to 22-12-2023. So, when i drag to slicer i need to show defalut selection as 22-12-2023. If user need to select other date he need select. otherwise it should be default. Thanks & Regards, Prasad38KViews0likes14CommentsCumulative substraction over categories
I have a matrix table in PBI and I would like to calculate a kind of cumulative substraction over the categories. The main goal is to achieve the "Expected W-1" field, so in a nutshell: for Category 1, the Expected W-1 calculation calculated in this way 10119 - 7427 = 2692, Further information that I am using a simple DAX measure = Count = Count(fact_table) (this is required because additonal filtering can be applied in the future. CATEGORIES Current W-1 Expected W-1 How it is calculated? Category 1 10119 2692 Category 1 - Category 2 Category 2 7427 3312 Category 2 - Category 3 Category 3 4115 2127 Category 3 - Category 4 Category 4 1988 109 Category 4 - Category 5 Category 5 1879 97 Category 5 - Category 6 Category 6 1782 383 Category 6 - Category 7 Category 7 1399 1399 Category 7 Total 28709 10119 Is there any way to solve this?Solved1.1KViews0likes6CommentsDax Query Not working
CurrentMonthLastYearCount = VAR SelectedMonth = MAX(Query1[SetupDate]) VAR LastYearSameMonthStart = EOMONTH(SelectedMonth, -12) + 1 VAR LastYearSameMonthEnd = EOMONTH(SelectedMonth, -12) RETURN CALCULATE( SUM(Query1[NewCount]), Query1[SetupDate] >= LastYearSameMonthStart && Query1[SetupDate] <= LastYearSameMonthEnd ) I am trying to write a query which shows current month last year in my matrix based on slicer date selection but this query wont return any reuslts and would show up as blankSolved1.1KViews0likes4Comments