Category "dax"

Roll up 1 column using function in DAX

I am trying to roll up a table in DAX as seen below. It's just some operations. I can do this in SQL with joins or in Power Query with merges or pivots, however

DAX Iterator Behavior

I don't think this is doing what I want it to do. I have a fact table with columns date, weekstarting, customer, product and qtyshipped and I want an average pr

Power BI summarized or grouped? How to work out ratio

I have spent hours trying to solve and I dont' even know what to search an answer for: This is my base data table in Power BI PA PA FTE PERSON PERSON FTE Anne

Searching a row for a substring in another table with exact match

I'm trying to use search in a description to see if there is an exact match to the field in another table. I used the code from How to search a row for a subst

power bi Dividing the count value by 20

i have the following dax formula i need this formulas value to be divided to 20. As is the formula works good, i couldn't figure out to add in division to it. I

Can you use a variable to represent a slicer selection in PowerBi?

I am having a problem displaying a sum value in a gauge visual. My table has many rows with a value in each along with a date. I wrote a measure that calculat

MDX (Tableau) to DAX (Power BI) calculations

I have been using Tableau for quite some time but am getting some new experience with Power BI and the use of DAX, and am wondering how I would go about recreat

Is there a function to sum averages with multiple selections in a slicer in power BI/ dax?

I'd like to make a visual with average amount (totalled per one or more teams) per month (while keeping date hierachy to show data per day). I have a table with

How can I calculate market share for a segment by selecting one or more products in one or more segments?

I'm attempting to calculate market share (percentage of total) for a segment after a user selects a specific product within a filter. Data looks like this: Dat

how to display custom hierarchies in same visual?

I have a specific hierarchy that I have developed: I was expecting it to be: level 6 ( )level11 ( )( )Account description level 3 ( )Account description But I

How to calculate weekly sales velocity?

I have a table that lists a series of dates and a sales amount made on each date. So against each date, I would like to create two additional columns a)A curren

Measure inside Calculated Column; but measure depends on slicer selection

I have a tricky situation in Microsoft Power BI, and DAX language: I am developing a new Calculated Column called Status_CC in a table called Customers; we refe

DAX How to return a table based on a condition - workaround for IF to return a table

How to return DAX table based on a condition? The IF function cannot return a table in DAX. IF( 1=1, table_1, table_2 ) It raises an error: The expression refe

Power BI Calculate distinct impacting when I use filter

I made a measure that is as follows: wo = CALCULATE( DISTINCTCOUNT('Table1'[won]), ALLEXCEPT(Table1, 'Table1'[flag]), ALLEXCEPT(Calendar,Calendar[End of Week]),

Format date with dax

I have dates like: I need to do two transformations: Convert it into datetime field date and time in the initial data shows in GMT. Necessary translate into ou

Summarizing table sales

I have order table like CustomerId OrderAmount Orderdatetime OrderAmountCurrency AAA 120 02/03/2022 02:03 US$120 AAA 20 02/03/2022 02:20 US$20 AAA 320

Default Silcer Selection in Power BI (latest date)

I have one query can somebody please tell how to show Latest date in a date format So basically, I want to show the latest date selected by default and if the u

Power BI Visual Running Total adds up

My Sales per Month visual looks like the first part of the picture. To show the running total of transactions I use this Measure: Sum Sales Running Total = C

How to convert the following tableau calculation into DAX powerbi?

I have a tableau measure which goes like this: ColumnA= IF [Rating Projection Year 1] = 2021 THEN SUM([Weights Ly]*[Next year rating predicted (1)]*[Inclusion F

Is there a possibility in DAX to do a distinct over several columns?

I'd like to summarize the following ID's with it's prices on a distinct bases. So that means for the ID 123 both prices get summarize cause they are different.